Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[InputItem]type=money,defaultValue or value = some number then can't delete the default value use virtual keyboard #2493

Closed
1 task done
DragonCat1 opened this issue Apr 25, 2018 · 2 comments
Assignees
Labels

Comments

@DragonCat1
Copy link

DragonCat1 commented Apr 25, 2018

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

2.1.8

Environment

react 16.3.1 chrome

Reproduction link

https://github.com/ant-design/ant-design-mobile

Steps to reproduce

1.type=money
2.defaultValue or value = some number
3.delete initial value use virtual keyboard

What is expected?

can delete initial value

What is actually happening?

Uncaught TypeError: value.substring is not a function
at NumberInput._this.onKeyboardClick (CustomInput.js:136)
at CustomKeyboard._this2.onKeyboardClick (CustomKeyboard.js:117)
at onClick (CustomKeyboard.js:87)
at HTMLUnknownElement.callCallback (react-dom.development.js:100)
at Object.invokeGuardedCallbackDev (react-dom.development.js:138)
at Object.invokeGuardedCallback (react-dom.development.js:187)
at Object.invokeGuardedCallbackAndCatchFirstError (react-dom.development.js:201)
at executeDispatch (react-dom.development.js:466)
at executeDispatchesInOrder (react-dom.development.js:488)
at executeDispatchesAndRelease (react-dom.development.js:586)

@15738039217
Copy link

我用defaultValue或value =某个汉字,然后onChange监听输入的值给value,不能输入汉字,键盘一直闪

@micooz micooz closed this as completed May 21, 2018
@micooz
Copy link
Contributor

micooz commented May 21, 2018

@15738039217 能否新开 issue 给出复现的 demo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants