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

When the value (v-model) of TreeSelect is set to undefined, the result in the input box will not be cleared #4897

Closed
1 task done
wubiandaxian opened this issue Nov 18, 2021 · 1 comment
Labels

Comments

@wubiandaxian
Copy link

wubiandaxian commented Nov 18, 2021

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

Version

3.0.0-alpha.9

Environment

windows, Chrome(89.0.4389.114),3.2.20

Reproduction link

https://next.antdv.com/components/tree-select-cn

Steps to reproduce

Jsx模式下:

  1. TreeSelect首先选中一次
  2. 手动将value(v-model)设为undefined,输入框中的值并未消失,还是显示的上次的选择结果
<TreeSelect
allowClear
showSearch
placeholder="请选择分类"
treeData={s.treeData.value}
v-model={[classTypeId, 'value']}
/>

What is expected?

把value设为undefined时,输入框中的值能够消失(TreeSelect的选择状态能够初始化)

What is actually happening?

手动将value(v-model)设为undefined,输入框中的值并未消失,还是显示的上次的选择结果

@github-actions github-actions bot changed the title TreeSelect的value(v-model)设为undefined时,输入框内的结果不会被清除 When the value (v-model) of TreeSelect is set to undefined, the result in the input box will not be cleared Nov 18, 2021
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant