löschung/deaktiverung
This commit is contained in:
@@ -163,7 +163,7 @@ export function initEditor() {
|
||||
selectionTimer = setTimeout(() => {
|
||||
selectionJustChanged = false;
|
||||
selectionTimer = null;
|
||||
}, 120);
|
||||
}, 800);
|
||||
};
|
||||
const onUpdate = () => {
|
||||
if (selectionJustChanged) return;
|
||||
@@ -174,7 +174,9 @@ export function initEditor() {
|
||||
? model.changedAttributes()
|
||||
: (model && model.changed) ? model.changed : null;
|
||||
const keys = changed ? Object.keys(changed) : [];
|
||||
if (keys.length === 1 && keys[0] === 'status') return;
|
||||
if (!keys.length && selectionJustChanged) return;
|
||||
const safeKeys = new Set(['status', 'toolbar', 'selected', 'hovered', 'highlighted', 'hoverable', 'selectable', 'editable', 'draggable', 'droppable', 'copyable', 'removable', 'locked']);
|
||||
if (keys.length && keys.every(k => safeKeys.has(k))) return;
|
||||
if (selectionJustChanged && keys.length === 0) return;
|
||||
markDirty();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user