Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #6317 InputOtp #6596

Merged
merged 1 commit into from
Nov 13, 2024
Merged

Fix #6317 InputOtp #6596

merged 1 commit into from
Nov 13, 2024

Conversation

brtinney
Copy link
Contributor

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.

Handles iOS/macOS one-time-code autocomplete CustomEvent vs. InputEvent
Copy link

vercel bot commented Oct 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
primevue ⬜️ Ignored (Inspect) Visit Preview Oct 17, 2024 4:21pm
primevue-v3 ⬜️ Ignored (Inspect) Visit Preview Oct 17, 2024 4:21pm

@tugcekucukoglu tugcekucukoglu merged commit 1e70511 into primefaces:master Nov 13, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants