This commit is contained in:
2026-02-04 00:32:25 +01:00
parent 67cf770c38
commit 140da342bd
2 changed files with 12 additions and 1 deletions

View File

@@ -336,6 +336,17 @@ export function initEditor() {
}, 800);
};
const onUpdate = (reason, model) => {
if (reason === 'style:property:update') {
const isComponentModel = !!(model && (typeof model.getId === 'function' || (model.attributes && (model.attributes.tagName || model.attributes.type))));
if (!isComponentModel) {
debugUiLog({
event: 'dirty:skip',
reason,
note: 'style:update-non-component',
});
return;
}
}
if (reason === 'style:property:update' && !model) {
debugUiLog({
event: 'dirty:skip',