Open josepharhar opened 1 week ago
There is a note in show the picker:
Similarly, it's up to the user agent whether re-selecting the same files counts as were previously selected counts as a dismissal, or as a change of selection.
So here Safari & Chromium chose cancel
, and Firefox chose input
, but authors should be able to handle any such cases the way they want by listening to both events.
One thing to note though, is that Chromium seems to only look at the file name. So if you select a file, remove it from disk and create a new, different file, with the same name as the first one, then Chromium will still not fire an event, that looks like a bug.
What is the issue with the HTML Standard?
Safari and Chrome don't fire a second change event when the user chooses the same file, but firefox does. The spec just says this:
Should this behavior be interoperable? Should the spec say anything about this?
I'm guessing it isn't possible to write a WPT for this.
Context: https://issues.chromium.org/issues/40219625