ant-design change OTP inputs type to number

4ngedf3f  于 4个月前  发布在  其他
关注(0)|答案(2)|浏览(73)

What problem does this feature solve?

OTP input type is text but it must be number

What does the proposed API look like?

add type props to OTP inputs

p8h8hvxi

p8h8hvxi1#

OTP is not number only (e.g. Steam use 0-9A-Z). But maybe it can support type=number instead.

6uxekuva

6uxekuva2#

+1, very useful when using TOTP (Time-based One-Time Password).

I'm currently using antd-input-otp , which provides an inputType property similar to the one above to control the type of input.

Incidentally, it would be nice to have support for autoSubmit.

相关问题