Merge pull request #1811 from taylorchu/better-control-2

allow custom control as element
This commit is contained in:
Sam Potts
2020-04-29 09:39:50 +10:00
committed by GitHub
2 changed files with 3 additions and 5 deletions

View File

@ -1054,7 +1054,7 @@ class Plyr {
const hiding = toggleClass(this.elements.container, this.config.classNames.hideControls, force);
// Close menu
if (hiding && this.config.controls.includes('settings') && !is.empty(this.config.settings)) {
if (hiding && is.array(this.config.controls) && this.config.controls.includes('settings') && !is.empty(this.config.settings)) {
controls.toggleMenu.call(this, false);
}