Support url and number inputs in gl_form_errors
This commit is contained in:
parent
c0a499a3f4
commit
6ba1a8e9f3
|
@ -15,7 +15,7 @@ export default class GlFieldErrors {
|
||||||
|
|
||||||
initValidators() {
|
initValidators() {
|
||||||
// register selectors here as needed
|
// register selectors here as needed
|
||||||
const validateSelectors = [':text', ':password', '[type=email]']
|
const validateSelectors = [':text', ':password', '[type=email]', '[type=url]', '[type=number]']
|
||||||
.map(selector => `input${selector}`)
|
.map(selector => `input${selector}`)
|
||||||
.join(',');
|
.join(',');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue