浏览代码

Add fallback for phone number input

Make sure every change event returns a string.
master
父节点
当前提交
4dd56bb336
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. +1
    -0
      categories/formatted/react/src/components/PhoneNumberInput/index.tsx

+ 1
- 0
categories/formatted/react/src/components/PhoneNumberInput/index.tsx 查看文件

@@ -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(


正在加载...
取消
保存