-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Entire block's content deleted on single backspace in Firefox when the plugin is active #13979
Comments
Sorry, I started with a bad commit on this, so it's sometime earlier than that. What I missed in further testing is that it is only when typing in a new block. Once you move focus away from the block and come back, you can delete single characters at a time. |
Tested and confirmed using WordPress 5.0.3 and Gutenberg 5.1.0 hosted at https://jurassic.ninja/ using Firefox 65.0 on macOS 10.13.6. Note: this problem only happens when the plugin is active and only in Firefox. Console log is getting the following error, looks like for every key press:
cc @iseulde |
@earnjam c17239f should only affect the native mobile apps if I understand correctly. |
Error occurs at this line:
Quite likely related to changes introduced as part of #13833 (cc @iseulde @noisysocks ) |
Per the following, only Chrome and Safari have support for https://developer.mozilla.org/en-US/docs/Web/API/InputEvent/inputType#Browser_compatibility |
A not-so-great "workaround" (more to the point of confirming the above) is to enter this in your browser console when loading the editor: window.addEventListener( 'input', ( e ) => e.inputType = '', true ) |
Fix proposed at #13986 |
Describe the bug
Clicking backspace to delete a single character results in an entire block's content being removed.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect for a single character to be deleted.
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: