瀏覽代碼

Add fallback for phone number input

Make sure every change event returns a string.
master
TheoryOfNekomata 1 年之前
父節點
當前提交
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(


Loading…
取消
儲存