Skip to content

Commit 329a783

Browse files
committed
fix: move-onclick-event-to-button
1 parent fad5295 commit 329a783

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/lib/form/field.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,11 @@ const Field: React.FC<FieldProps> = ({
214214
>
215215
<StyledArrowIcon as={UpArrowIcon} />
216216
</ArrowButton>
217-
<ArrowButton aria-label="decrement">
218-
<StyledArrowIcon
219-
as={DownArrowIcon}
220-
onClick={() => inputRef?.current?.stepDown()}
221-
/>
217+
<ArrowButton
218+
aria-label="decrement"
219+
onClick={() => inputRef?.current?.stepDown()}
220+
>
221+
<StyledArrowIcon as={DownArrowIcon} />
222222
</ArrowButton>
223223
</ArrowsContainer>
224224
)}

0 commit comments

Comments
 (0)