Skip to content

Commit

Permalink
make numberSpinner an input of type "number", #497
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Apr 15, 2019
1 parent c6ecf1b commit 19abdc9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/accessibility/AccessibleNumberSpinner.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ define( function( require ) {
assert && assert( options.tagName === undefined, 'AccessibleNumberSpinner sets tagName' );
optionsToMutate.tagName = 'input';

assert && assert( options.inputType === undefined, 'AccessibleNumberSpinner sets inputType' );
optionsToMutate.inputType = 'number';

assert && assert( options.ariaRole === undefined, 'AccessibleNumberSpinner sets ariaRole' );
optionsToMutate.ariaRole = 'spinbutton';

Expand Down

0 comments on commit 19abdc9

Please sign in to comment.