Repository navigation
[otp field] Avoid password manager bubbles after first input - #4868
Conversation
commit: |
Bundle size
PerformanceTotal duration: 1,398.88 ms +230.70 ms(+19.7%) | Renders: 50 (+0) | Paint: 2,116.74 ms +331.55 ms(+18.6%)
7 tests within noise — details Check out the code infra dashboard for more information about this PR. |
✅ Deploy Preview for base-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
aarongarciah
left a comment
There was a problem hiding this comment.
Very nice. The iCloud Password extension popup doesn't appear anymore after the first input. In terms of assistive tech, it looks like we don't lose anything by removing maxlength="1"?
before
otp-icloud-passwords.mp4
after
Kapture.2026-05-20.at.12.26.38.mp4
When I was testing VoiceOver, NVDA, Narrator, etc., they didn't announce anything relating to the length of the input, it's the |
Only the first OTP field input needs the full-code max length. Later visible inputs now omit
maxlength, so password managers do not treat every slot as a separate one-character target while typing still handles multi-characterchanges.
This notably affected iCloud password manager
Root cause
Each visible slot had a
maxlength, which could cause password manager UI to appear after later inputs.Changes
maxlengthonly on the first visible OTP input.maxlengthand cover multi-character replacement from a later slot.