Only add hideControls class if config.hideControls is truthy
This commit is contained in:
parent
a812650fea
commit
9e19b526b9
@ -1076,8 +1076,8 @@ class Plyr {
|
|||||||
utils.toggleClass(this.elements.controls, this.config.classNames.noTransition, false);
|
utils.toggleClass(this.elements.controls, this.config.classNames.noTransition, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if controls toggled
|
// Set hideControls class
|
||||||
const toggled = utils.toggleClass(this.elements.container, this.config.classNames.hideControls, true);
|
const toggled = utils.toggleClass(this.elements.container, this.config.classNames.hideControls, this.config.hideControls);
|
||||||
|
|
||||||
// Trigger event and close menu
|
// Trigger event and close menu
|
||||||
if (toggled) {
|
if (toggled) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user