autonumeric
Advanced tools
Changelog
4.8.3
emptyInputBehavior
is set to null
, then getNumber()
returns 0
when no value has been set beforeyarn clean:log
command to clean the logs from the newer webdriver.io versionchange
event is not triggered when dragging value into a text inputChangelog
4.8.1
Changelog
4.8.0
negativePositiveSignBehavior
for the managing the '-' and '+' key behaviornegativePositiveSignBehavior
to true
will allow the toggling, while setting it to false
will disable it; this means that when hitting the '-' key, the value will always be set to its negative value, and hitting the '+' key will always set the element to its positive value (given the minimum and maximum value allows this)negativePositiveSignBehavior: AutoNumeric.options.negativePositiveSignBehavior.toggle
in your options' configuration.positiveSignCharacter
optionChangelog
4.7.0
modifyValueOnUpDownArrow
and upDownStep
Changelog
4.6.3
Changelog
4.6.2
formArrayNumericString()
Changelog
4.6.0
invalidClass
, which default to an-invalid
, that defines the CSS class name to use when a contenteditable-enabled element value is invalid'invalid'
for the overrideMinMaxLimits
option, that will allow users to enter out-of-bound numbersminimumValue
and maximumValue
range
minimumValue
is superior to 0
, or the maximumValue
is inferior to 0
invalid
:invalid
and/or :valid
state as they wish to display a visual feedback as neededan-invalid
CSS class on such 'invalid' elements'autoNumeric:invalidValue'
event is sent. When the value is corrected, the new 'autoNumeric:correctedValue'
event is sent.
'autoNumeric:invalidValue'
event as well as the 'autoNumeric:minExceeded'
or 'autoNumeric:maxExceeded'
events are now sent up to three times for a single input; on keypress, keyup and blurminimumValue
higher than 0
, or a maximumValue
lower than 0
, a warning will be displayed in the console telling him to perhaps use the overrideMinMaxLimits
invalid
option. For information, the overrideMinMaxLimits
doNotOverride
is still the default behavior._isWithinRangeWithOverrideOption()
functiondeclare module 'autonumeric';
line from their script (cf. PR #677)Changelog
4.5.13
v4.5.9
with the fix for #647)