According to the documentation, validation keys for an:
<input type="number" required />
are:
required and number.
Let's recall that a key's value to true means key in error and false means fulfilling the expectation.
- If I enter nothing,
required: trueandnumber:false=> why notnumberastruesince empty string isn't a number? - If I enter
fergrg,required: trueandnumber:false=> why not required tofalseandnumbertotrue?
The only case where it seems logic is when I enter a number, where both required and number get false.
The provided demo in the documentation confirms this rule.
Bug? Or any explanation?
numberkey tofalsewhen letters are entered.