Skip to content

Instantly share code, notes, and snippets.

@jplagostena
Created February 22, 2023 18:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jplagostena/f1965fdd16f5ad16bff56c57fa9c38a8 to your computer and use it in GitHub Desktop.
Save jplagostena/f1965fdd16f5ad16bff56c57fa9c38a8 to your computer and use it in GitHub Desktop.
Handsontable patch to avoid bug #4305
diff --git a/node_modules/handsontable/core.mjs b/node_modules/handsontable/core.mjs
index db18cea..504e2af 100644
--- a/node_modules/handsontable/core.mjs
+++ b/node_modules/handsontable/core.mjs
@@ -1168,14 +1168,14 @@ export default function Core(rootElement, userSettings) {
var shouldBeCanceled = true;
if (beforeChangeResult === false) {
if (activeEditor) {
- activeEditor.cancelChanges();
+ //activeEditor.cancelChanges();
}
return;
}
var waitingForValidator = new ValidatorsQueue();
waitingForValidator.onQueueEmpty = function (isValid) {
if (activeEditor && shouldBeCanceled) {
- activeEditor.cancelChanges();
+ //activeEditor.cancelChanges();
}
callback(isValid); // called when async validators are resolved and beforeChange was not async
};
@@ -1292,7 +1292,7 @@ export default function Core(rootElement, userSettings) {
instance.runHooks('afterChange', changes, source || 'edit');
var activeEditor = instance.getActiveEditor();
if (activeEditor && isDefined(activeEditor.refreshValue)) {
- activeEditor.refreshValue();
+ //activeEditor.refreshValue();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment