Skip to content

a-select设置了allowClear后,点击清除按钮会把绑定的属性从对象中删除 #8047

Open
@wangfpp

Description

@wangfpp
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

4.2.6

Environment

mac window都可以稳定复现

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. reactive生命formModel
  2. 绑定formItem select
  3. select allowClear
  4. 使用clearIcon清空 select的值
    此时formMedel的key也被清空了

What is expected?

应该只清空value 不应该清空key

What is actually happening?

应该只清空value 不应该清空key

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions