If the min property is set to 0 then it is not taken into account.
I believe following condition is invalid:
if (props.min) newValue = Math.max(newValue, +props.min);
It should be:
if (props.min != undefined) newValue = Math.max(newValue, +props.min);
If the
minproperty is set to0then it is not taken into account.I believe following condition is invalid:
It should be: