Skip to content

Commit 4a9eb94

Browse files
authored
[FIX]: Add prevent default, Merge pull request #40 from ssimk0/patch-1
Add prevent default on Input Button.jsx file to avoid performing default behaviour inside a form tag.
2 parents 83ed4ba + 9825fae commit 4a9eb94

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/components/input-button/InputButton.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ const InputButton: React.FC<InputButtonProps> = (props: InputButtonProps) => {
5050
};
5151
function clickInput(e: React.MouseEvent<MouseEvent>): void {
5252
e.stopPropagation();
53+
e.preventDefault();
5354
let referenceInput = inputRef.current;
5455
if (referenceInput) {
5556
referenceInput.click();

0 commit comments

Comments
 (0)