1.0.0 - Safari - useBreakpointValue 'mediaQuery.addEventListener' is undefined
See original GitHub issueHello there,
on latest release there is problem with using useBreakpointValue
in Safari browser.
Enclosing error message and reproducible demo.
TypeError
mediaQuery.addEventListener is not a function. (In 'mediaQuery.addEventListener("change", handleChange)', 'mediaQuery.addEventListener' is undefined)
Thanks!
Issue Analytics
- State:
- Created 3 years ago
- Comments:15 (11 by maintainers)
Top Results From Across the Web
javascript - matchMedia().addListener marked as deprecated ...
1 - logs error addEventListener is not a function. Had to revert code to deprecated addListener() to get Angular web app to work...
Read more >MediaQueryList.addListener() - Web APIs - MDN Web Docs
A function or function reference representing the callback function you want to run when the media query status changes. Return value. None ( ......
Read more >Solved: ".matchMedia(...).addEventListener is not a function ...
In modern browsers, the MediaQueryList object inherits from the EventTarget object, which makes the addEventListener method available on the ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@sebqq yea thanks I was just about to do that 😉 thanks. I often turn to patch-package ❤️
Nevermind, I totally ignored you mentioned
useBreakpointValue
🤦♂️ I forgot reverting it there, sorry. Will change that later today and it will be fixed in the next release.