Skip to content
Snippets Groups Projects
Verified Commit c43e7490 authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

cell: Reduce triggered changed events

Relocate code to set the cell value as last remaining draft state. It
was noticed that this code would otherwise trigger multiple times which
results in unneeded updates.
parent c228db5d
Branches
No related tags found
No related merge requests found
...@@ -66,6 +66,7 @@ class Cell extends EventEmitter { ...@@ -66,6 +66,7 @@ class Cell extends EventEmitter {
this.value = this.draftState[0]; this.value = this.draftState[0];
} }
} }
}
addDraft(x) { addDraft(x) {
// no need to change the draft when value is already known // no need to change the draft when value is already known
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment