You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> If this was the fix recently included in 6.1, it does not cover the common case of a link like `/#anchor` or `/some-page/#anchor`. It only works if the `href` exactly starts with `#`. So if you are on `/some-page/` and you click the `/some-page/#anchor` link, it will scroll down to the anchor, but the modal will remain open.
Just a note for the simple fix mentioned above, it may be good to check that the link.hostname matches as well to prevent a link like https://other-website.com/blog/#anchor from being included while on https://my-website.com/blog/.
Then again, closing the modal when clicking an external link probably doesn't pose any issues either.. Honestly since submenus are triggered by buttons (afaik), the modal should probably close after clicking any link. Unless that is just undesirable to see the menu close before the browser navigates to the next page.
@coreyworrell Thanks very much for the feedback and observations. That's really helpful.
I wonder, would you consider submitting a PR to fix this feature? I'm not sure whether it would be your first PR on this repo but I would be more than happy to help you through the process if that's of interest.
What do you think? All contributors received props on the Gutenberg Plugin releases and ultimately in WP Core.
@draganescu I looks like we'll need a bug fix PR for this.
Originally posted by @getdave in #39625 (comment)
The text was updated successfully, but these errors were encountered: