Skip to content

Commit

Permalink
fix: input type number scroll 막음
Browse files Browse the repository at this point in the history
  • Loading branch information
Josanghyeon authored and Josanghyeon committed Dec 29, 2022
1 parent adabb1e commit d1b79df
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/input/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ export const Input = ({
<Label label={label} />
<_InputWrapper width={width}>
<_Input
onWheel={(e) => e.preventDefault()}
onWheel={(e) => {
//@ts-ignore
document.activeElement.blur();
}}
onFocus={() => {
setIsInputClicked(false);
}}
Expand Down

0 comments on commit d1b79df

Please sign in to comment.