npm / input-otp
input-otp
What changed in input-otp 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.
1 new APIs and options2 behavior and defaults6 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initinput-otp 19 changes
New APIs and options 1
Adds a
nonceprop applied to the injected style tag so it can satisfy astyle-srcContent-Security-Policy that requires nonces.
Behavior and default changes 2
Failures to insert cosmetic CSS rules are logged as warnings instead of errors, since they do not break functionality.
Defaults to false to prevent browsers from marking a filled code as a spelling error; passing a
spellCheckprop still overrides it.
Fixes and other changes 6
Pending synchronization timeouts are cleared on unmount, avoiding state updates on an unmounted component.
The password-manager badge gutter is reserved only when it fits within the nearest horizontal overflow constraint; otherwise the badge stays over the last slot without creating overflow.
The component checks for
ResizeObserverbefore observing; when unavailable, root height is measured once on mount instead of crashing.A 16px font-size fallback is used until
--root-heightresolves, preventing iOS Safari from zooming the page on focus or back-navigation.The listener uses a guarded input reference, preventing a crash when the ref is null.
The container receives
translate="no"to prevent browser translation from rewriting slot text nodes and crashing React on re-render.