Closed randallard closed 5 months ago
This is a fairly common observation/PR (#100, https://github.com/leptos-rs/leptos/pull/2171) but it is not actually correct -- i.e., some browsers (Chrome) enforce some of the requirements you want this way, but allow other things that still yield errors (in this case, 1.23
, e
, or 240823412384134123432423412341
will all be allowed by <input type="number">
but still generate errors). Other browsers (Firefox, Safari) allow any input.
I have added a note to clarify and hopefully avoid this confusion in the future.
input type in Error Handling prevented typing non-numbers and seeing the error
(This is nit-picky) changed "It maybe easiest..." to "It may be easiest..." according to https://dictionary.cambridge.org/us/grammar/british-grammar/maybe-or-may-be