-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Navigation Link URL setting in Inspector Controls does not allow you to delete last character #60758
Comments
I believe the issue may be this check here:
It checks that the URL is truthy via the |
When I update the logic and allow setting an empty URL value, this is what happens: the URL popover opens and steals the focus. ScreenshotCleanShot.2024-04-16.at.13.09.52.mp4 |
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. |
Sorry I can't remember! |
This is still a problem. When you correct the logic the rich text of the |
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
CleanShot.2024-04-15.at.21.48.07.mp4
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
The text was updated successfully, but these errors were encountered: