Skip to content

Commit

Permalink
refactor: remove Safari 9 workaround (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan authored Jan 11, 2021
1 parent c874a11 commit c5d58d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/vaadin-checkbox-group.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,9 +372,7 @@ class CheckboxGroupElement extends ThemableMixin(DirMixin(PolymerElement)) {
* @protected
*/
_containsFocus() {
const root = this.getRootNode();
// Safari 9 needs polyfilled `_activeElement` to return correct node
const activeElement = root._activeElement !== undefined ? root._activeElement : root.activeElement;
const activeElement = this.getRootNode().activeElement;
return this.contains(activeElement);
}

Expand Down
2 changes: 1 addition & 1 deletion web-test-runner.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const config = {
include: ['**/src/*'],
threshold: {
statements: 99,
branches: 86,
branches: 88,
functions: 100,
lines: 99
}
Expand Down

0 comments on commit c5d58d0

Please sign in to comment.