Skip to content

Commit ec6f392

Browse files
committed
fix(numberinput): pass otherProps down to the wrapper
1 parent 390edd8 commit ec6f392

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/NumberInput/NumberInput.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ const NumberInput = forwardRef<HTMLInputElement, NumberInputProps>(
104104
style,
105105
value,
106106
variant = 'default',
107-
width
107+
width,
108+
...otherProps
108109
},
109110
ref
110111
) => {
@@ -160,6 +161,7 @@ const NumberInput = forwardRef<HTMLInputElement, NumberInputProps>(
160161
...style,
161162
width: width !== undefined ? getSize(width) : 'auto'
162163
}}
164+
{...otherProps}
163165
>
164166
<TextInput
165167
value={valueDerived}

0 commit comments

Comments
 (0)