-
Notifications
You must be signed in to change notification settings - Fork 126
Open
@hobadams
Description
Issue
the max-length property is not valid for input type number.
Screenshot 2022年05月19日 at 09 38 45
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'
}
Metadata
Metadata
Assignees
Labels
No labels