Skip to content

Commit 28f7c60

Browse files
committed
fix(input-file): initialize filename state with translated text
1 parent a21c2b7 commit 28f7c60

File tree

1 file changed

+1
-1
lines changed
  • packages/components/src/components/input-file

1 file changed

+1
-1
lines changed

packages/components/src/components/input-file/shadow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ export class KolInputFile implements InputFileAPI, FocusableElement {
211211
*/
212212
@Prop({ mutable: true, reflect: true }) public _touched?: boolean = false;
213213

214-
@State() private filename: string;
214+
@State() private filename: string = this.translateFilenameText;
215215
@State() private hasFileSelected: boolean = false;
216216

217217
@State() public state: InputFileStates = {

0 commit comments

Comments
 (0)