mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 09:58:04 +08:00
Refactor: Replace IndexMethodRadio with IndexMethod component, add keyword number functionality, and update related translations
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user