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
The whole update mechanism for the pincode component is based on the event key, which, on android, is returning Unidentified.
Maybe a quick, Android-specific solution could be implemented on the side ?
I made an implementation example in this repl => https://svelte.dev/repl/b21abf74c10b40e89fa84b33bc69a812?version=3.54.0
Of course we'll lose all modifier handling, but there doesn't seem to be a solution for keyup / keydown working on Android.
Hey @sebastiendub, not super related, but this fix does not work with SvelteKit.
ReferenceError: navigator is not defined
The error makes sense, since the code is trying let userAgent = navigator.userAgent, but navigator is not accessible on server side.
How could I fix this?
Thanks
UPD: one thing comes to my mind is to just expose a variable in the component and then pass the user agent value from the load function of the page. But again, that's SSR-specific.
The whole update mechanism for the pincode component is based on the event key, which, on android, is returning
Unidentified
.Maybe a quick, Android-specific solution could be implemented on the side ?
I made an implementation example in this repl => https://svelte.dev/repl/b21abf74c10b40e89fa84b33bc69a812?version=3.54.0
Of course we'll lose all modifier handling, but there doesn't seem to be a solution for keyup / keydown working on Android.
I made a PR related to this issue => #20
The text was updated successfully, but these errors were encountered: