contributte / live-form-validation

:no_entry: Nice client-side live form validation for Nette Forms.
https://contributte.org/packages/contributte/live-form-validation.html
BSD 3-Clause "New" or "Revised" License
59 stars 24 forks source link

Fix number validator empty values #60

Closed skybamar closed 4 years ago

skybamar commented 4 years ago

According to addInteger method in Nette\Forms\Container it seems that integer input is supposed to be nullable and therefore empty value should be valid input for integer (assuming also for float).

https://github.com/nette/forms/blob/35f9b84c0245640cca2c6aa5544d0de4bb06a9d8/src/Forms/Container.php#L300

f3l1x commented 4 years ago

Thanks.