-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
onBlur and onEnter submit error #11
Comments
Hello, I cannot reproduce this behavior. What is your browser version? Can you reproduce with another browser? Can you reproduce on the demo? I have just added a section "Setting behavior for both Blur action and Enter keypress" with both blur and enter leading to submit. Works fine for me with both Firefox or Chromium. |
I'm on an older version of Chrome (Version 120.0.6099.109 (Official Build) (x86_64)) |
I'm sorry but without a reproducible bug, it will be hard to fix. Could you record a video showing the problem? Maybe there is something that we missed in the bug description and that is important. Sometimes I ask for a video and immediatly understand the user problem because they were doing something weird (normal for them, weird for the app). If it's reproducible with several browsers and also on the demo code, then we can assume the issue is not on your side. But it would still be useful to know:
I just want to isolate as much as possible the issue. Also, is it 100% of the time erroring out or sometimes it works? |
I can see the error 100% on Chrome. In the movie, from https://deltablot.github.io/malle/, I just remove some text and press enter and you can see the error in the chrome dev console. Skarminspelning.2024-11-12.kl.08.23.07.mov |
@catja77 Thank you for the video. I will try and have a look at this issue. |
The bug only appears on Chromium based browsers, not firefox. Version 2.6.2 will contain a fix for this issue! |
Describe the bug
If I have both onBlur and onEnter set to Action.Submit, then I get this error in the Console:
"Uncaught (in promise) DOMException: Failed to execute 'replaceWith' on 'Element': The node to be removed is no longer a child of this node. Perhaps it was moved in a 'blur' event handler? at malle.js:110:23"
onBlur seems to work either way.
But if I change onBlur to Action.Ignore, then onEnter works as expected.
Should it not allow both onBlur and onEnter to use Action.Submit ??
Information
The text was updated successfully, but these errors were encountered: