pull/3534/head^2
Mitja Bezenšek 2024-04-23 08:58:09 +02:00
rodzic c1943be832
commit e94e706850
1 zmienionych plików z 1 dodań i 6 usunięć

Wyświetl plik

@ -1182,12 +1182,7 @@ export class Editor extends EventEmitter<TLEventMap> {
partial: Partial<Omit<TLInstance, 'currentPageId'>>,
historyOptions?: TLCommandHistoryOptions
): this {
if (partial.isReadonly === false && this.getInstanceState().isReadonly) {
const { isReadonly: _isReadonly, ...rest } = partial
this._updateInstanceState(rest, { ephemeral: true, squashing: true, ...historyOptions })
} else {
this._updateInstanceState(partial, { ephemeral: true, squashing: true, ...historyOptions })
}
this._updateInstanceState(partial, { ephemeral: true, squashing: true, ...historyOptions })
if (partial.isChangingStyle !== undefined) {
clearTimeout(this._isChangingStyleTimeout)