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

[NumberPicker]NumberPicker组件受控态自动修改问题 #1163

Closed
soulwu opened this issue Sep 23, 2019 · 2 comments
Closed

[NumberPicker]NumberPicker组件受控态自动修改问题 #1163

soulwu opened this issue Sep 23, 2019 · 2 comments
Assignees

Comments

@soulwu
Copy link

soulwu commented Sep 23, 2019

Component

NumberPicker

Reproduction link

Edit on CodeSandbox

Steps to reproduce

连续多次输入0,第二次开始不会被自动纠正,并且上下操作按钮失效

@bindoon
Copy link
Member

bindoon commented Sep 29, 2019

初始数据是空,不符合规范呀,应该是个整数

@bindoon
Copy link
Member

bindoon commented Sep 29, 2019

原因是,订正的时候修改了显示value,onBlur 的时候应该再修改为 props.value

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

No branches or pull requests

2 participants