Skip to content

Commit

Permalink
fix(app): clear <input> value after robot update file select (#5789)
Browse files Browse the repository at this point in the history
Fixes #5781
  • Loading branch information
mcous authored Jun 2, 2020
1 parent a666c3f commit 62372b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/components/RobotSettings/UploadRobotUpdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ export function UploadRobotUpdate(props: UploadRobotUpdateProps) {
// https://electronjs.org/docs/api/file-object
dispatch(startBuildrootUpdate(robotName, (files[0]: any).path))
}
// clear input value to allow same file to be selected again if necessary
event.target.value = ''
}

return (
Expand Down

0 comments on commit 62372b0

Please sign in to comment.