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

[bug] Cascader 级联选择 响应式表单重置错误 #335

Closed
Feng-JY opened this issue Sep 20, 2017 · 3 comments · Fixed by #356
Closed

[bug] Cascader 级联选择 响应式表单重置错误 #335

Feng-JY opened this issue Sep 20, 2017 · 3 comments · Fixed by #356
Assignees
Labels

Comments

@Feng-JY
Copy link

Feng-JY commented Sep 20, 2017

I'm submitting a...


[ X ] Bug report  

Current behavior

采用响应式表单,form.reset() 后表单未重置

Others: 是否和这段代码有关,表单重置后value为null
--> nz-cascader.component.ts
writeValue(value: any): void { if (value == null) { return; } }

@vthinkxie
Copy link
Member

@fbchen

@fbchen
Copy link
Contributor

fbchen commented Sep 20, 2017

确认是因为value == null判断没有往下执行,修复代码已提交

@lock
Copy link

lock bot commented Feb 19, 2019

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators Feb 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants