File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
app/components/form/fields Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import { useId } from 'react'
1010import type { FieldPathByValue , FieldValues } from 'react-hook-form'
1111import { Controller } from 'react-hook-form'
1212
13- import type { NumberInputProps as UINumberFieldProps } from '@oxide/ui'
1413import { FieldLabel , TextInputHint , NumberInput as UINumberField } from '@oxide/ui'
1514import { capitalize } from '@oxide/util'
1615
@@ -70,8 +69,7 @@ export const NumberFieldInner = <
7069 description,
7170 required,
7271 id : idProp ,
73- ...props
74- } : TextFieldProps < TFieldValues , TName > & UINumberFieldProps ) => {
72+ } : TextFieldProps < TFieldValues , TName > ) => {
7573 const generatedId = useId ( )
7674 const id = idProp || generatedId
7775
@@ -85,19 +83,17 @@ export const NumberFieldInner = <
8583 < >
8684 < UINumberField
8785 id = { id }
88- title = { label }
86+ // title={label}
8987 error = { ! ! error }
9088 aria-labelledby = { cn ( `${ id } -label` , {
9189 [ `${ id } -help-text` ] : ! ! description ,
9290 } ) }
9391 aria-describedby = { description ? `${ id } -label-tip` : undefined }
94- { ...fieldRest }
95- { ...props }
96- // these have to go after the spread so they take precedence
9792 defaultValue = { value }
9893 onChange = { ( val ) => {
9994 onChange ( val )
10095 } }
96+ { ...fieldRest }
10197 />
10298 < ErrorMessage error = { error } label = { label } />
10399 </ >
You can’t perform that action at this time.
0 commit comments