We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent feb8fd6 commit 4d369caCopy full SHA for 4d369ca
src/composables/player.ts
@@ -681,8 +681,11 @@ function resolveAttributes(options: PlayerOptions = {}): PlayerAttributes {
681
const attributes = Object
682
.entries(options)
683
.reduce((attributes, [option, value]) => {
684
- const attribute = (<any>DATA_ATTRIBUTE_NAMES)[option] || option
685
- attributes[`data-${attribute}`] = value
+ if (value !== undefined) {
+ const attribute = (<any>DATA_ATTRIBUTE_NAMES)[option] || option
686
+ attributes[`data-${attribute}`] = value
687
+ }
688
+
689
return attributes
690
}, <PlayerAttributes>{
691
...DEFAULT_ATTRIBUTES
0 commit comments