Created
February 22, 2023 18:18
-
-
Save jplagostena/f1965fdd16f5ad16bff56c57fa9c38a8 to your computer and use it in GitHub Desktop.
Handsontable patch to avoid bug #4305
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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