OTP input type is text but it must be number
add type props to OTP inputs
p8h8hvxi1#
OTP is not number only (e.g. Steam use 0-9A-Z). But maybe it can support type=number instead.
type=number
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.
2条答案
按热度按时间p8h8hvxi1#
OTP is not number only (e.g. Steam use 0-9A-Z). But maybe it can support
type=number
instead.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.