An empty input of '' is converted to 0 when passed to the onChange as the getRawValue function uses the helpers.formattedToRaw function which returns Number('');. Request that an option is added to allow an empty string or null to be returned to allow the ability to distinguish in the event handler if a user has entered a 0 or has cleared the input.
An empty input of '' is converted to 0 when passed to the
onChange
as thegetRawValue
function uses thehelpers.formattedToRaw
function which returnsNumber('');
. Request that an option is added to allow an empty string ornull
to be returned to allow the ability to distinguish in the event handler if a user has entered a 0 or has cleared the input.