Opened 2 years ago
Last modified 19 months ago
#52634 new defect (bug)
Twenty Twenty: Child Theme Search Modal Safari Throws Error in Parent asset/index.js
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 5.3 |
Component: | Bundled Theme | Keywords: | reporter-feedback |
Focuses: | javascript | Cc: |
Description
Twenty Twenty child theme, search modal on safari throws error in parent asset/index.js when search toggle clicked. Works fine in all other browsers.
TypeError: null is not an object (evaluating 'modal.querySelectorAll')
elements = modal.querySelectorAll( selectors );
null is not an object (evaluating 'modal.querySelectorAll')
Change History (2)
Note: See
TracTickets for help on using
tickets.
Thanks for the report!
That line is in the keepFocusInModal function. Both search buttons should have the
data-toggle-target=".search-modal"
attribute, but it might help to know if this error occurs when clicking either the desktop or mobile search toggle button (or both).