You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uncaught NotFoundError: Failed to execute 'removeChild' on 'Node': The node to be removed is no longer a child of this node. Perhaps it was moved in a 'blur' event handler?
Its seems as though the blur or focusout event gets fired twice. If I trigger off an event such as a button click (similar to http://stackoverflow.com/questions/7519796/how-to-make-cell-save-when-slickgrid-looses-focus) or mouseleave event, then it works fine. In our situation, though, the button is not intuitive, and the mouseleave event is too twitchy (e.g. the user accidently moves the mouse out of the way).
$('.slick-viewport').on('blur', 'input.editor-text', function (e) {
Slick.GlobalEditorLock.commitCurrentEdit();
});
at line 338 (just before the //initialize the model after the events... comment). I am using Slickgrid v2.2, jQuery 1.10.2 and jQueryUI 1.10.3. But I have tried it with older versions of jQuery (1.7.2) and jQueryUI (1.8.16) with similar results.
The text was updated successfully, but these errors were encountered:
I am also using Chrome (Version 32.0.1700.76 m) with the console debugger open to display the error message. There doesn't seem to be an error with IE9 or Firefox (26.0)
I got around this issue by wrapping my blur handler in a timeout.
$('.slick-viewport').on('blur', 'input.editor-text', function (e) {
window.setTimeout(function(){
Slick.GlobalEditorLock.commitCurrentEdit();
}, 0);
});
It seems to be that commit the current edit changes the underlying structure of the DOM -- which means jQuery is then trying to remove an element that was already removed by committing it. The timeout just causes the command to run in the next frame allowing jQuery to run first.
I am trying to commit a cell edit when the user clicks anywhere off the grid. I've seen this issue:
So I tried using
and
but they both seem to generate an error in jQuery
Its seems as though the blur or focusout event gets fired twice. If I trigger off an event such as a button click (similar to http://stackoverflow.com/questions/7519796/how-to-make-cell-save-when-slickgrid-looses-focus) or mouseleave event, then it works fine. In our situation, though, the button is not intuitive, and the mouseleave event is too twitchy (e.g. the user accidently moves the mouse out of the way).
I am using the code from example 4
and added the following lines:
at line 338 (just before the //initialize the model after the events... comment). I am using Slickgrid v2.2, jQuery 1.10.2 and jQueryUI 1.10.3. But I have tried it with older versions of jQuery (1.7.2) and jQueryUI (1.8.16) with similar results.
The text was updated successfully, but these errors were encountered: