Skip to content

Commit

Permalink
Merge branch 'main' into 13258-fluid-inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
kodiakhq[bot] authored Mar 17, 2023
2 parents 61d6b50 + a2c4147 commit c037b3f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,13 @@ function FileUploaderButton({

function onClick(event) {
event.target.value = null;
inputNode.current.value = '';
inputNode.current.click();
}

function onKeyDown(event) {
if (matches(event, [keys.Enter, keys.Space])) {
inputNode.current.value = '';
inputNode.current.click();
}
}
Expand Down

0 comments on commit c037b3f

Please sign in to comment.