fix(input): create max and/or min validation whatever the initial value is

- fix issue #10307
- change tests to corresponding changes
- also change tests for ngmax and ngmin (though they have no some issue)

Closes #10307