Skip to content

Commit

Permalink
Date Picker Spin Button Example: fix query selector (pull #1153)
Browse files Browse the repository at this point in the history
Resolves issue #1151. The query selector for the `spinbutton` element was incomplete, which caused it to not query properly in Safari or IE.

This fix adds in the missing characters to the query so that it queries properly.
  • Loading branch information
backwardok authored and mcking65 committed Aug 31, 2019
1 parent 698da57 commit e451c93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/spinbutton/js/spinbutton-date.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var SpinButtonDate = function (domNode, values, callback) {

var initialValue = domNode.getAttribute('aria-valuetext');

this.spinbuttonNode = domNode.querySelector('[role="spinbutton');
this.spinbuttonNode = domNode.querySelector('[role="spinbutton"]');

this.previousValueNode = domNode.querySelector('.previous');
this.nextValueNode = domNode.querySelector('.next');
Expand Down

0 comments on commit e451c93

Please sign in to comment.