Open hobadams opened 2 years ago
Issue
the max-length property is not valid for input type number.
max-length
number
Solution
Something like this (just an idea).
const textInputs = ['email', 'password', 'search', 'tel', 'text', 'url']; let maxLength = null if (textInputs.includes(input.type)) { maxLength = 'existing logic here' }
Issue
the
max-length
property is not valid for input typenumber
.Solution
Something like this (just an idea).