@zag-js/number-input@1.42.0
·
3 commits
to main
since this release
Minor Changes
-
f71bd89Thanks
@segunadebayo! - Fixed issue whereCmd/Ctrl+ arrow keys produced values off
thestepgrid (e.g. non-integer values whenstep: 1). Stepping with modifier keys now stays aligned tostep.Replaced the implicit modifier-based stepping with explicit, configurable props:
- Slider: added
largeStep(defaults to10 * step) used whenShiftorPageUp/PageDownis pressed. - Number Input: added
largeStep(defaults to10 * step, onShift) andsmallStep(defaults tostep / 10,
onAlt).
The defaults preserve the previous stepping magnitudes, so existing behavior is unchanged unless the new props are
set. - Slider: added
Patch Changes
-
#3170
da88564Thanks
@segunadebayo! - Fix issue where callingapi.setValuewith a number throws when
formatOptionsis 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