Skip to content

Commit df6b323

Browse files
committed
fix react case
1 parent 6547216 commit df6b323

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

packages/mux-uploader/src/mux-uploader-file-select.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,10 @@ class MuxUploaderFileSelectElement extends globalThis.HTMLElement {
157157
const locale = (this.#uploaderEl as MuxUploaderElement)?.locale;
158158
const text = t('Upload a video', locale);
159159

160-
if (this.filePickerEl) {
161-
// Translate text only if it's the default button (inside the shadow DOM)
162-
const buttonEl = this.shadowRoot?.querySelector('#file-select') as HTMLButtonElement;
163-
if (buttonEl) {
164-
buttonEl.textContent = text;
165-
}
160+
// Translate text only if it's the default button (inside the shadow DOM)
161+
const buttonEl = this.shadowRoot?.querySelector('#file-select') as HTMLButtonElement;
162+
if (buttonEl) {
163+
buttonEl.textContent = text;
166164
}
167165
}
168166
}

0 commit comments

Comments
 (0)