ngx-material-file-input
ngx-material-file-input copied to clipboard
Input Value Is Cleared on Cancel After Open
Steps to reproduce:
- Click on input.
- Select file, e.g. "readme.txt".
- Click Open.
- Verify that input value is "readme.txt".
- Click on input.
- Click Cancel.
Actual behavior: Input value is cleared.
Expected behavior: Input value remains "readme.txt".
I'm also having this problem
I'm having this problem too but I've discovered that is the default behaviour: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file
I'm having this problem too but I've discovered that is the default behaviour: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file
It looks like this does not happen in Firefox, but does happen in Chrome
Actually I found out that it depends on the browser: on Chrome the file is removed, on Firefox is not
On Sat, 30 Jan 2021, 04:29 kelly, [email protected] wrote:
I'm having this problem too but I've discovered that is the default behaviour: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file
Are you sure about that? I just clicked one of their examples and it didn't remove a previously selected value when I pressed cancel
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/merlosy/ngx-material-file-input/issues/71#issuecomment-770148649, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYRZDCSZO25YC6K2RQYMITS4N4J7ANCNFSM4T7XT7UQ .
Do we have a workaround for this on Chrome?