auto clear html input on file upload

This commit is contained in:
SethBurkart123
2024-04-03 17:27:57 +11:00
parent fbed12ce3b
commit 764eee3d34
+1
View File
@@ -36,6 +36,7 @@ function ThemeCreator({ themeID }: { themeID?: string }) {
const handleImageUpload = (event: React.ChangeEvent<HTMLInputElement>) => {
const file = event.target.files?.[0];
event.target.value = '';
if (file) {
const reader = new FileReader();
reader.onload = async () => {