Skip to content

Commit

Permalink
fix(player): title occasionally not set
Browse files Browse the repository at this point in the history
closes #1384
  • Loading branch information
mihar-22 committed Aug 12, 2024
1 parent d64c10a commit 98506a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vidstack/src/components/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ export class MediaPlayer
*/
@prop
get title() {
return peek(this.$state.providedTitle);
return peek(this.$state.title);
}

set title(newTitle) {
Expand All @@ -418,7 +418,7 @@ export class MediaPlayer
return;
}

this.$state.providedTitle.set(newTitle);
this.#props.title.set(newTitle);
}

/**
Expand Down

0 comments on commit 98506a2

Please sign in to comment.