diff --git a/src/Editor/CressTable.ts b/src/Editor/CressTable.ts index 6cace21..064f5d6 100644 --- a/src/Editor/CressTable.ts +++ b/src/Editor/CressTable.ts @@ -151,7 +151,15 @@ export class CressTable { private initChangeListener() { changeHooks.forEach((hook) => { this.table.addHook(hook, (source) => { - if (source != 'loadData') setSavedStatus(false); + if (source != 'loadData') { + if (hook === 'afterChange') { + const oldValue = source[0][2]; + const newValue = source[0][3]; + if (oldValue !== newValue) setSavedStatus(false); + } else { + setSavedStatus(false); + } + } }); }); }