Skip to content

Commit 96a9947

Browse files
chore(lint): run prettier on numericinput field
1 parent e354fb7 commit 96a9947

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

src/components/form/fields/NumericInput.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@ type Props = Omit<InputFieldProps, 'type'>;
2727
* wheel behavior is suppressed for this field.
2828
*/
2929
const NumericInput: React.FC<Props> = (props) => {
30-
const { onWheel: onWheelFromParent, innerRef: innerRefFromParent, ...rest } =
31-
props;
30+
const {
31+
onWheel: onWheelFromParent,
32+
innerRef: innerRefFromParent,
33+
...rest
34+
} = props;
3235
const inputRef = React.useRef<HTMLInputElement | null>(null);
3336

3437
const setInputRef = (input: HTMLInputElement | null) => {
@@ -42,8 +45,9 @@ const NumericInput: React.FC<Props> = (props) => {
4245
}
4346

4447
if (innerRefFromParent && 'current' in innerRefFromParent) {
45-
(innerRefFromParent as React.MutableRefObject<HTMLInputElement | null>).current =
46-
input;
48+
(
49+
innerRefFromParent as React.MutableRefObject<HTMLInputElement | null>
50+
).current = input;
4751
}
4852
};
4953

0 commit comments

Comments
 (0)