React Input Number Max Not Working