Skip to content

Commit d5ecbfc

Browse files
committed
fix(playground): reset file input after using it
1 parent e37fa17 commit d5ecbfc

File tree

1 file changed

+2
-0
lines changed
  • experiments/apidom-playground/src/features/app/file-importer/components

1 file changed

+2
-0
lines changed

experiments/apidom-playground/src/features/app/file-importer/components/FileImporter.jsx

+2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ const FileImporter = () => {
4949

5050
reader.onloadend = onloadend;
5151
reader.readAsText(file);
52+
// eslint-disable-next-line no-param-reassign
53+
event.target.value = '';
5254
};
5355

5456
const handleUrlDialogOpen = () => {

0 commit comments

Comments
 (0)