diff options
Diffstat (limited to 'dist/plyr.js')
-rw-r--r-- | dist/plyr.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dist/plyr.js b/dist/plyr.js index 1f3e49f4..c838ddb6 100644 --- a/dist/plyr.js +++ b/dist/plyr.js @@ -2427,7 +2427,8 @@ typeof navigator === "object" && (function (global, factory) { } // True toggle by default - var show = is.element(popup) && popup.hasAttribute('hidden'); + var hidden = popup.hasAttribute('hidden'); + var show = hidden; if (is.boolean(input)) { show = input; @@ -2468,7 +2469,7 @@ typeof navigator === "object" && (function (global, factory) { setFocus.call(this, firstItem, true); } // If closing, re-focus the button - else if (!show) { + else if (!show && !hidden) { setFocus.call(this, button, is.keyboardEvent(input)); } }, |