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

[Field]field resetToDefault cant reset value with no initValue #1001

Closed
bindoon opened this issue Aug 13, 2019 · 0 comments · Fixed by #1007
Closed

[Field]field resetToDefault cant reset value with no initValue #1001

bindoon opened this issue Aug 13, 2019 · 0 comments · Fixed by #1007
Assignees

Comments

@bindoon
Copy link
Member

bindoon commented Aug 13, 2019

Component

Field

Reproduction link

https://riddle.alibaba-inc.com/riddles/475315f1

version

1.16.x

Steps to reproduce

<div className="demo">
  <Input {...init('input2')} />
  <Button onClick={() => resetToDefault()}>resetToDefault</Button>
</div>

when input some value,cant reset To Default

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 a pull request may close this issue.

2 participants