Skip to content

Commit

Permalink
recase non-constant
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed Mar 12, 2018
1 parent ae99e07 commit 9e572fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/picker.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Keyboard from '../modules/keyboard';
import DropdownIcon from '../assets/icons/dropdown.svg';

let OPTIONS_ID = 0;
let optionsCounter = 0;

function toggleAriaAttribute(element, attribute) {
element.setAttribute(attribute, !(element.getAttribute(attribute) === 'true'));
Expand Down Expand Up @@ -98,8 +98,8 @@ class Picker {
options.tabIndex = '-1';

// Need a unique id for aria-controls
options.id = `ql-picker-options-${OPTIONS_ID}`;
OPTIONS_ID += 1;
options.id = `ql-picker-options-${optionsCounter}`;
optionsCounter += 1;
this.label.setAttribute('aria-controls', options.id);

this.options = options;
Expand Down

0 comments on commit 9e572fe

Please sign in to comment.