Skip to content

Commit d952872

Browse files
committed
fix: bound-check position in _ariaChecked
Close #54
1 parent 0a83af7 commit d952872

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/main/resources/META-INF/resources/frontend/paper-slider/l2t-paper-slider.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,9 @@ Polymer$0({
375375
for (var i = 0; i < dotElems.length; i++) {
376376
dotElems[i].setAttribute("aria-checked", "false");
377377
};
378-
dotElems[this.position].setAttribute("aria-checked", "true");
378+
if (this.position < dotElems.length) {
379+
dotElems[this.position].setAttribute("aria-checked", "true");
380+
}
379381
}
380382
},
381383

0 commit comments

Comments
 (0)