Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
fix(header-menu): reenable shadow DOM delegatesFocus feature in Saf…
Browse files Browse the repository at this point in the history
…ari (#691)

* fix(header-menu): reenable shadow DOM `delegatesFocus` feature in Safari

* chore: bump version 1.16.2
  • Loading branch information
emyarod committed Aug 25, 2021
1 parent a00b5dd commit 3ffb8d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "carbon-web-components",
"version": "1.16.1",
"version": "1.16.2",
"license": "Apache-2.0",
"main": "es/index.js",
"module": "es/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui-shell/header-menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class BXHeaderMenu extends HostListenerMixin(FocusMixin(LitElement)) {
createRenderRoot() {
return this.attachShadow({
mode: 'open',
delegatesFocus: Number((/Safari\/(\d+)/.exec(navigator.userAgent) ?? ['', 0])[1]) <= 537,
delegatesFocus: true,
});
}

Expand Down

0 comments on commit 3ffb8d0

Please sign in to comment.