Skip to content

Commit

Permalink
fix(mdc-textfield): Support number as permitted type attribute value.
Browse files Browse the repository at this point in the history
  • Loading branch information
pgbross authored and pgbross committed Mar 30, 2018
1 parent 71fda09 commit 2089135
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions components/textfield/mdc-textfield.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,15 @@ export default {
default: 'text',
validator: function(value) {
return (
['text', 'email', 'search', 'password', 'tel', 'url'].indexOf(
value,
) !== -1
[
'text',
'email',
'search',
'password',
'tel',
'url',
'number',
].indexOf(value) !== -1
);
},
},
Expand Down

0 comments on commit 2089135

Please sign in to comment.