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

[Form] reset method results in an exception for file input #6812

Open
artnetepin opened this issue May 16, 2019 · 2 comments
Open

[Form] reset method results in an exception for file input #6812

artnetepin opened this issue May 16, 2019 · 2 comments

Comments

@artnetepin
Copy link

SUI: v. 2.4.2
Browser: Chrome

Description

Calling form reset after saving throws an exception:
Failed to set the 'value' property on 'HTMLInputElement': This input element accepts a filename, which may only be programmatically set to the empty string.
that refers to
...definitions/behaviors/form.js?:178:22
which is in this case $field.val(defaultValue);

Possible solution

The method should probably check for file input and set an empty string for it instead of the default value to prevent this error.

@mosynaq
Copy link

mosynaq commented Jan 21, 2020

Is it planned to be taken care of?

@lubber-de

This comment was marked as spam.

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

No branches or pull requests

3 participants