Skip to content

@zag-js/number-input@1.42.0

Choose a tag to compare

@github-actions github-actions released this 29 Jun 15:21
· 3 commits to main since this release
df65e4c

Minor Changes

  • f71bd89 Thanks
    @segunadebayo! - Fixed issue where Cmd/Ctrl + arrow keys produced values off
    the step grid (e.g. non-integer values when step: 1). Stepping with modifier keys now stays aligned to step.

    Replaced the implicit modifier-based stepping with explicit, configurable props:

    • Slider: added largeStep (defaults to 10 * step) used when Shift or PageUp/PageDown is pressed.
    • Number Input: added largeStep (defaults to 10 * step, on Shift) and smallStep (defaults to step / 10,
      on Alt).

    The defaults preserve the previous stepping magnitudes, so existing behavior is unchanged unless the new props are
    set.

Patch Changes

  • #3170
    da88564 Thanks
    @segunadebayo! - Fix issue where calling api.setValue with a number throws when
    formatOptions is defined.

  • Updated dependencies []:

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