Skip to content

Commit ab238b4

Browse files
authored
Merge pull request #45 from taras-danyliuk/fix/prevent-form-submission
prevent form submission on time input control icon click
2 parents 925da14 + e30ce36 commit ab238b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/TimeInput.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ const TimeInput: React.FunctionComponent<Props> = ({ onUp, onDown, onChange, onB
1818
return (
1919
<div className="time-input">
2020
<div className="time-input__up">
21-
<button onClick={onUp}>
21+
<button onClick={onUp} type="button">
2222
<SVGIcon id="up" />
2323
</button>
2424
</div>
2525
<div className="time-input__text">
2626
<input type="text" value={value} onChange={onChange} onBlur={onBlur} />
2727
</div>
2828
<div className="time-input__down">
29-
<button onClick={onDown}>
29+
<button onClick={onDown} type="button">
3030
<SVGIcon id="down" />
3131
</button>
3232
</div>

0 commit comments

Comments
 (0)