Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(file-uploader-button): clear value by setting to "" instead of null #1812

Merged
merged 2 commits into from
Sep 30, 2023

Conversation

jperelli
Copy link
Contributor

This fixes the following error I got:

InvalidStateError: Failed to set the 'value' property on 'HTMLInputElement': This input element accepts a filename, which may only be programmatically set to the empty string

which made my tests in vitest fail.

jperelli and others added 2 commits September 28, 2023 19:41
This fixes the following error I got.

> InvalidStateError: Failed to set the 'value' property on 'HTMLInputElement': This input element accepts a filename, which may only be programmatically set to the empty string
Copy link
Collaborator

@metonym metonym left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@metonym metonym changed the title Error on FileUploaderButton: Value can only be set to the empty string fix(file-uploader-button): clear value by setting to "" instead of null Sep 30, 2023
@metonym metonym merged commit 108eb52 into carbon-design-system:master Sep 30, 2023
2 checks passed
@metonym
Copy link
Collaborator

metonym commented Oct 13, 2023

Released in v0.81.0

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.

None yet

2 participants