Skip to content

fix(textfield): do not bind .value for file inputs#543

Closed
dankeboy36 wants to merge 1 commit into
vscode-elements:mainfrom
dankeboy36:fix/542/file-type-textfield
Closed

fix(textfield): do not bind .value for file inputs#543
dankeboy36 wants to merge 1 commit into
vscode-elements:mainfrom
dankeboy36:fix/542/file-type-textfield

Conversation

@dankeboy36

Copy link
Copy Markdown
Contributor

The native file input cannot accept non-empty values programmatically.

Skip mirroring and binding .value for type="file".
Only propagating FileList to form internals.
This prevents InvalidStateError and keeps file selections intact across
renders.

Closes #542

The native file input cannot accept non-empty values programmatically.

Skip mirroring and binding .value for type="file".
Only propagating FileList to form internals.
This prevents InvalidStateError and keeps file selections intact across
renders.

Closes vscode-elements#542

Signed-off-by: dankeboy36 <dankeboy36@gmail.com>
@bendera

bendera commented Sep 23, 2025

Copy link
Copy Markdown
Member

👀

@dankeboy36 dankeboy36 closed this Sep 24, 2025
@dankeboy36

Copy link
Copy Markdown
Contributor Author

Not a bug. See #542 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"file" type Textfield errors after selecting a file

2 participants