Skip to content

Commit

Permalink
fix(app): fix input field caret position issue
Browse files Browse the repository at this point in the history
fix input field caret position issue

close RQA-2697
  • Loading branch information
koji committed May 8, 2024
1 parent 49cdabc commit 820fabb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/atoms/InputField/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,11 @@ function Input(props: InputFieldProps): JSX.Element {
<StyledInput
{...inputProps}
data-testid={props.id}
id={props.id}
value={value}
placeholder={placeHolder}
onWheel={event => event.currentTarget.blur()} // prevent value change with scrolling
type={props.type}
/>
{props.units != null ? (
<Flex css={UNITS_STYLE}>{props.units}</Flex>
Expand Down

0 comments on commit 820fabb

Please sign in to comment.