@hesto2/autonumeric
Advanced tools
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)