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
Have tried to adjust the on call to use onchange = handleChange, but that did nothing.
What is the expected behavior?
Seems like it is Safari not firing onchange, ideally Safari would fix. But is there a workaround for react-hookz? Perhaps if Safari, provide a setInterval check?
Environment Details
@react-hookz/web version: 23.1.0
react version: 18.2.0
react-dom version: 18.2.0
typescript version: 5.4.5
OS: MacOS
Browser: Safari Version 17.4.1 (19618.1.15.11.14)
Did this work in previous versions? unknown. It works currently in Chrome
The text was updated successfully, but these errors were encountered:
What is the current behavior?
usePermission
works on Chrome, but not Safari. Seems like root issue is in Safari not firing change event: https://forums.developer.apple.com/forums/thread/757353I'm documenting this here in case someone else runs into it and partly to see if anyone has an idea for a workaround.
Steps to Reproduce
permission
isprompt
and never updated on Safari, even though re-querying shows it was grantedHave tried to adjust the
on
call to useonchange = handleChange
, but that did nothing.What is the expected behavior?
Seems like it is Safari not firing onchange, ideally Safari would fix. But is there a workaround for react-hookz? Perhaps if Safari, provide a setInterval check?
Environment Details
@react-hookz/web
version: 23.1.0react
version: 18.2.0react-dom
version: 18.2.0typescript
version: 5.4.5The text was updated successfully, but these errors were encountered: