We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c17cb4 commit 7d162a5Copy full SHA for 7d162a5
sites/preview/src/lib/components/tree/ContextMenu.svelte
@@ -165,6 +165,10 @@
165
const handleFileInputChange: EventHandler<Event, HTMLInputElement> = (event) => {
166
onFilesSelected?.(event.currentTarget.files);
167
onFilesSelected = undefined;
168
+
169
+ // Reset the input's "selected files" to prevent it from dispatching
170
+ // the "cancel" event when the same files are reuploaded.
171
+ event.currentTarget.value = "";
172
};
173
174
const handleFileInputCancel: EventHandler<Event, HTMLInputElement> = () => {
0 commit comments