Skip to content

Commit

Permalink
fix(MultipleFileUpload): Prevent file upload from opening incorrectly (
Browse files Browse the repository at this point in the history
  • Loading branch information
wise-king-sullyman authored Jul 26, 2023
1 parent 3976445 commit 9319d1a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const MultipleFileUpload: React.FunctionComponent<MultipleFileUploadProps

const rootProps = getRootProps({
...props,
onClick: (event) => event.preventDefault() // Prevents clicking TextArea from opening file dialog
onClick: (event) => event.stopPropagation() // Prevents clicking TextArea from opening file dialog
});

return (
Expand Down

0 comments on commit 9319d1a

Please sign in to comment.