cipchk / nz-schema-form

ng-zorro-antd form generation based on JSON-Schema
MIT License
40 stars 14 forks source link

0.2.1 bug,[(model)]方式绑定的值在清空文本框时,会保留最后一次保存的值 #44

Open liweitao92 opened 6 years ago

liweitao92 commented 6 years ago

Bug Report or Feature Request (mark with an x)


[x] Bug report -> please search issues before submitting
[ ] Feature request
[ ] Documentation issue or request

Reproduction link

https://cipchk.github.io/nz-schema-form/#/validator 官网的例子就有这个问题。

ezgif-4-2228a34ce9 更改文本框,查看 result 的值变化

Steps to reproduce

What is expected?

What is actually happening?

Environment


ng-alain version: X.Y.Z
Angular version: X.Y.Z
Browser:
- [ ] Chrome (desktop) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] IE version XX
cipchk commented 6 years ago

已知,因为改了使用 model 来获取数据,但是是不对的,应该使用 change 事件。

近期会重构基础逻辑,这是一个数据流混乱的问题 #43