Skip to content

sf.setvalue(null)和autocomplete值清空后formValueChange中的pathValue会取完整的表单数据, 没有取到当前字段的值 #1879

@blacksola

Description

@blacksola

Reproduction link

https://stackblitz.com/edit/angular-ef1qe2?file=src/app/app.component.ts

Steps to reproduce

1、sf.setValue(null)后可以看到控制台里打印的formValueChange中的pathValue 为完整的表单数据, 而不是控件的值
2、把autocomplete控件中的文字全部删除后formValueChange中的pathValue 为完整的表单数据, 而不是控件的值

What is expected?

pathValue为null

What is actually happening?

pathValue为完整的表单数据

Environment Info
ng-alain 10.1.3
Browser Microsoft Edge Chromium 87

修改sf中控件的属性后,利用setvalue或reset赋值为null来刷新属性后formValueChange中的pathValue为完整的表单数据

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions