Explorar el Código

Add fallback for phone number input

Make sure every change event returns a string.
master
TheoryOfNekomata hace 1 año
padre
commit
4dd56bb336
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. +1
    -0
      categories/formatted/react/src/components/PhoneNumberInput/index.tsx

+ 1
- 0
categories/formatted/react/src/components/PhoneNumberInput/index.tsx Ver fichero

@@ -91,6 +91,7 @@ export const PhoneNumberInput = React.forwardRef<
} = useProxyInput<PhoneNumberInputDerivedElement, Value>({
forwardedRef,
valueSetterFn: (v) => setPhoneNumber(v),
transformChangeHandlerArgs: (v) => (v ?? '') as unknown as Value,
});

const commonInputStyles = clsx(


Cargando…
Cancelar
Guardar