Open fabiankaegy opened 7 months ago
I believe the issue may be this check here:
It checks that the URL is truthy via the &&
check. Which would fail for empty strings.
When I update the logic and allow setting an empty URL value, this is what happens: the URL popover opens and steals the focus.
https://github.com/WordPress/gutenberg/assets/240569/378cd0cb-78fb-4293-961e-8c35cb36d839
It looks like the issue might have been introduced via #49417.
@scruffian, I know it's super old PR, but maybe you can remember why this change was needed.
P.S. The issue affects older versions of WP if we don't meet the timeline for the next minor release. It should be fine to bump this until the next major.
I've yet to test this, but a proposed fix in #61374 might help us fix this issue.
@scruffian, I know it's super old PR, but maybe you can remember why this change was needed.
Sorry I can't remember!
This is still a problem. When you correct the logic the rich text of the label
in the block canvas steals the focus.
Description
The URL setting in the naviation link blocks settings sidebar does not allow you to remove the final character. So if you for example have an anchor link in there you are not able to delete the
#
from the URL.Step-by-step reproduction instructions
You should be able to remove everything including the last character
Screenshots, screen recording, code snippet
https://github.com/WordPress/gutenberg/assets/20684594/629453a1-7cee-4e72-bdb6-1123dfde88b8
Environment info
Also:
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