NumberInput
Deprecated
This component is deprecated and will be removed in a future release. Please use the NumberInputV2 component instead.
Number inputs let users enter and edit integers and floating-point numbers.
Changes to NumberInput. The full components changelog also lists package-wide and cross-cutting entries.
3.13.0
Updates
- Controlled value now correctly reflects transformations applied by the
onChangehandler in the same render (e.g. clamping to a minimum). (APPDEV-19356)
3.4.0
Updates
General
- Behavior tracking attributes are now supported in all button components, including
Button,IntentButton,NotifyButton, andRunQueryButton. (APPDEV-16876) - The text and icon color tokens for the success on accent button are now correct. (APPDEV-17388)
- Behavior tracking attributes are now supported in all form components, including
Calendar,Checkbox,DateTimePicker,DateTimeRangePicker,FieldSet,FormField,Label,NumberInput,NumberInputV2,PasswordInput,Radio,SearchInput,Select,Switch,TextArea,TextInput, andToggleButtonGroup. (APPDEV-16882) - Behavior tracking attributes are now supported in
FilterBar,FilterField,SegmentSelector, andTimeframeSelector.FilterField.SuggestionsandTimeframeSelector.Presetsnow also support behavior tracking attributes. (APPDEV-16881) - Added feature flag and css overrides for design tokens for visual refresh. (APPDEV-17223)
Forms
- Improved read-only state for form components:
TextInput,TextArea,PasswordInput,NumberInput,DateTimePicker,DateTimeRangePicker,Select,Switch,Checkbox,RadioGroupandToggleButtonGroup. (APPDEV-16539, APPDEV-16540, APPDEV-16542, APPDEV-16543, APPDEV-16544, APPDEV-16545, APPDEV-16546, APPDEV-16547, APPDEV-16548) - Default placeholder texts are now shown when no placeholder is explicitly provided. (APPDEV-17048)
3.1.0
Updates
NumberInputis now deprecated in favor ofNumberInputV2.