Add the ability to properly validate partial numeric input,
accounting for leading 0s and the min/max possible values based
on the maxLength of the input. fixes #17923