This commit is contained in:
Sam Potts
2018-06-11 16:19:11 +10:00
parent 7c6d4666e9
commit 38f10d4cc6
9 changed files with 112 additions and 59 deletions

View File

@@ -260,9 +260,6 @@ class Plyr {
utils.wrap(this.media, this.elements.container);
}
// Allow focus to be captured
this.elements.container.setAttribute('tabindex', 0);
// Add style hook
ui.addStyleHook.call(this);
@@ -849,7 +846,7 @@ class Plyr {
// Update state and trigger event
if (active !== this.captions.active) {
this.captions.active = active;
utils.dispatchEvent.call(this, this.media, this.captions.active ? 'captionsenabled' : 'captionsdisabled');
utils.dispatchEvent.call(this, this.media, this.captions.active ? 'captionsenabled' : 'captionsdisabled');
}
}