github chakra-ui/zag @zag-js/pin-input@1.46.0

Patch Changes

  • #3410
    2209f73 Thanks
    @segunadebayo! - Fixed issue where pressing Enter with an incomplete value did
    nothing, blocking form submission and native validation.

    • Pressing Enter now always requests form submission, so the browser runs constraint validation.
    • When required is set, each input is marked required so the validation message points to the first empty input.
    • An incomplete value, or one with characters that don't match type, now fails validation, and focus moves to a
      visible input instead of the hidden one.
  • #3411
    3abcef4 Thanks
    @segunadebayo! - Improved keyboard navigation and setup feedback.

    • Pressing Ctrl/Cmd + ArrowLeft/ArrowRight now moves focus to the first or last input (reversed in RTL).
    • Pressing ArrowUp/ArrowDown now moves focus to the first or last input, matching Home/End.
    • Added a development warning when count doesn't match the number of rendered inputs.
  • Updated dependencies []:

    • @zag-js/anatomy@1.46.0
    • @zag-js/core@1.46.0
    • @zag-js/types@1.46.0
    • @zag-js/utils@1.46.0
    • @zag-js/dom-query@1.46.0

Don't miss a new zag release

NewReleases is sending notifications on new releases.