Skip to content

Commit

Permalink
fix: use media slot (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
luwes authored Nov 25, 2024
1 parent b4d8a4b commit d80267e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/custom-media-element/custom-media-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,9 @@ export const CustomMediaMixin = (superclass, { tag, is }) => {
this.#init();
return (
this.#nativeEl ??
this.shadowRoot.querySelector(tag) ??
this.querySelector(':scope > [slot=media]') ??
this.querySelector(tag)
this.querySelector(tag) ??
this.shadowRoot.querySelector(tag)
);
}

Expand Down

0 comments on commit d80267e

Please sign in to comment.