Skip to content

Commit

Permalink
fix(player): updating attrs after destroyed will throw
Browse files Browse the repository at this point in the history
closes #950
  • Loading branch information
mihar-22 committed Oct 19, 2023
1 parent adace29 commit 1e7ad2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vidstack/src/elements/lit/directives/signal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ class SignalDirective extends AsyncDirective {
}

override disconnected() {
if (!this._isAttr) this.setValue(null);
this._stop?.();
this._stop = null;
this.setValue(null);
}

protected _watch() {
Expand Down

0 comments on commit 1e7ad2b

Please sign in to comment.