mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 11:44:40 +00:00
auto clear html input on file upload
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user