Skip to content

Commit 7566d31

Browse files
add: check video input on load if not empty string (#61)
1 parent 3af0f17 commit 7566d31

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

public/components/video-input.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,14 @@ class VideoInput extends LitElement {
160160
this.requestUpdate();
161161
}, 500); }
162162

163+
164+
connectedCallback() {
165+
super.connectedCallback();
166+
if (this.value !== '') {
167+
this.handleInput({ target: { value: this.value } });
168+
}
169+
}
170+
163171
render() {
164172
return html`
165173
<div class="video-container">

0 commit comments

Comments
 (0)