Skip to content

Commit

Permalink
fix: clear upload input
Browse files Browse the repository at this point in the history
  • Loading branch information
fabienwnklr committed Jan 8, 2024
1 parent 11795f8 commit 8f0e132
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ui/Toolbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1038,6 +1038,8 @@ export class Toolbar {

if (file) {
this.drawer.loadFromData(URL.createObjectURL(file));
// Clear value for prevent load again same img
this.$uploadFile.value = "";
}
}
}
Expand Down

0 comments on commit 8f0e132

Please sign in to comment.