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

Form Stepper demo and a bug fix #4021

Merged
merged 2 commits into from Sep 23, 2021
Merged

Form Stepper demo and a bug fix #4021

merged 2 commits into from Sep 23, 2021

Conversation

p697
Copy link
Collaborator

@p697 p697 commented Sep 23, 2021

之前的 Stepper 存在一个问题:对于受控的 Stepper,如果外部直接改变 value,Stepper 的 state 可以正常改变但 input 上显示的值还是旧的,这也是 #4018 的原因。

这个 pr 略微改进了 Stepper 内部对 inputValue 的渲染逻辑,可以解决上述问题。

@awmleer
Copy link
Member

awmleer commented Sep 23, 2021

原来如此

@awmleer
Copy link
Member

awmleer commented Sep 23, 2021

之前写了个 bug……

@awmleer awmleer merged commit 0690484 into ant-design:master Sep 23, 2021
@awmleer awmleer changed the title From Stepper demo and a bug fix Form Stepper demo and a bug fix Sep 23, 2021
@awmleer awmleer added this to the 5.0.0-beta milestone Sep 25, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants