[wp-trac] [WordPress Trac] #53619: Twenty Twenty-One: JS Error for Anchors that load custom modals or react hash routes
WordPress Trac
noreply at wordpress.org
Fri Nov 19 13:01:37 UTC 2021
#53619: Twenty Twenty-One: JS Error for Anchors that load custom modals or react
hash routes
-----------------------------------------------+-------------------------
Reporter: rixeo | Owner: audrasjb
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.9
Component: Bundled Theme | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-testing-info commit | Focuses: javascript
-----------------------------------------------+-------------------------
Changes (by audrasjb):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"52213" 52213]:
{{{
#!CommitTicketReference repository="" revision="52213"
Twenty Twenty-One: Check if anchor exists before triggering in-page
navigation.
This prevents JavaScript errors when using hash in URLs without matching
them to any existing anchor in the page.
Props rixeo, sabernhardt, pbearne.
Fixes #53619.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53619#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list