From 888f8dc79e79d6f7fa541e5b48b5ff9ea67d6b77 Mon Sep 17 00:00:00 2001 From: Yinan Zhou Date: Tue, 2 Jul 2024 10:27:21 -0400 Subject: [PATCH] fix: update saved status if not loading data Resolves: #86 --- src/Editor/CressTable.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Editor/CressTable.ts b/src/Editor/CressTable.ts index 48cf816..8cb6be6 100644 --- a/src/Editor/CressTable.ts +++ b/src/Editor/CressTable.ts @@ -65,8 +65,8 @@ export class CressTable { dropdownMenu: true, className: 'table-menu-btn', licenseKey: 'non-commercial-and-evaluation', - afterChange() { - setSavedStatus(false); + afterChange(changes, source) { + if (source != 'loadData') setSavedStatus(false); this.validateCells(); }, beforeValidate: (value) => this.setProcessStatus(value),