Refactor: Replace IndexMethodRadio with IndexMethod component, add keyword number functionality, and update related translations

This commit is contained in:
twwu
2025-05-13 15:35:21 +08:00
parent cef6463847
commit 4d68aadc1c
16 changed files with 286 additions and 223 deletions

View File

@ -21,7 +21,7 @@ const Input: FC<Props> = ({
const value = e.target.value
if (isNumber) {
let numberValue = Number.parseInt(value, 10) // integer only
if (isNaN(numberValue)) {
if (Number.isNaN(numberValue)) {
onChange('')
return
}