-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Prevent typing on a Popover from closing the block toolbar #21421
Conversation
Size Change: -9 B (0%) Total Size: 889 kB
ℹ️ View Unchanged
|
@youknowriad I wrote some code to add a TextControl to the URLPopoverAtLink component and have been experiencing the same issue. When I type anything into the TextControl, the toolbar closes immediately. I've installed this PR to see if that fixes the issue but it doesn't. Is this relevant here or should I create a new issue? |
@arnaudbroes How did you "install" the PR? Can you send me a zip with your plugin to try? |
With "installing" I mean downloading this PR, installing the .zip as a plugin and then running Here's the script in a plugin - |
I believe this will also fix #14890. |
@arnaudbroes Indeed, your bug is different one and I believe is related to RichText stealing focus. This was fixed in Gutenberg since we're using a new Link control though. I'm not sure what part of that link control triggers the focus move to RichText though. |
Tested and confirmed this fixes #21402 👍 |
closes #14890
closes #21402
the isTyping flag should only be triggered when we type on the canvas. This can be achieved constantly by checking the DOM event (and not the React event bubbling)
Testing instructions