Skip to content

Commit

Permalink
debounce edit validation functionality depending on how the event is …
Browse files Browse the repository at this point in the history
…triggered
  • Loading branch information
olifolkerd committed Feb 18, 2024
1 parent 4396bb1 commit 9a252fe
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion dist/js/tabulator_esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -8356,12 +8356,16 @@ class Edit$1 extends Module{

cell.setValue(value, true);


return valid === true;
}else {
editFinished = true;
self.invalidEdit = true;
self.focusCellNoEvent(cell, true);
rendered();

setTimeout(() => {
editFinished = false;
}, 10);
return false;
}
}
Expand Down
2 changes: 1 addition & 1 deletion dist/js/tabulator_esm.js.map

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion src/js/modules/Edit/Edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -631,12 +631,16 @@ class Edit extends Module{

cell.setValue(value, true);


return valid === true;
}else{
editFinished = true;
self.invalidEdit = true;
self.focusCellNoEvent(cell, true);
rendered();

setTimeout(() => {
editFinished = false;
}, 10);
return false;
}
}else{
Expand Down

0 comments on commit 9a252fe

Please sign in to comment.