primevue icon indicating copy to clipboard operation
primevue copied to clipboard

Fix #6317 InputOtp

Open brtinney opened this issue 1 year ago • 1 comments

This resolves the jumbled input when using the autocomplete feature in iOS/macOS to fill a one-time-code field (#6317).

iOS/macOS sends a CustomEvent vs. an InputEvent, and thus has no inputType. However, it does still need to move to the next input field, otherwise the next character is just appended after the first, resulting in 123456 becoming 165432.

I have confirmed that the proof of concept handler used here works: https://stackblitz.com/edit/primevue-4-vite-issue-template-kmmtvs?file=src%2FApp.vue

However, I am unsure of whether there might be other CustomEvents that would fire that would not want to move to the next field. Unfortunately, there were no other identifying characteristics of the event that Apple sends that I could use in order to limit the impact of this change.

brtinney avatar Oct 17 '24 16:10 brtinney