-
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
Chrome/Safari: Unable to type in empty RichText element that's flexed #56272
Comments
cc @ellatrix |
Confirming this issue. Displaying a RichText element, with a Confirming the fix: Setting |
Any updates on this issue? I don't think the |
Fixed by #59473 :) |
Description
In several instances we use flex layout on rich text elements for better handling of pseudo elements, like icons on buttons. However, in 6.4, I can no longer type in an empty button for instance, not unless the flex is turned off (the cursor is visible but typing doesn't update anything).
This appears to be caused by #53341 which removed the
contenteditable="false"
attribute from the placeholder span.My bandaid fix has been to set the placeholder span to
display: contents
. This enables typing into the area, but the cursor does not consistently render in Safari.Step-by-step reproduction instructions
.wp-block-button__link
isdisplay: flex;
(inline-flex also works)Screenshots, screen recording, code snippet
No response
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: