Commit 6ba1a8e9 authored by Enrique Alcantara's avatar Enrique Alcantara

Support url and number inputs in gl_form_errors

parent c0a499a3
...@@ -15,7 +15,7 @@ export default class GlFieldErrors { ...@@ -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(',');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment