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

[TreeSelect] 可过滤的树选择,筛选点击后清空选项,树列表还处于筛选状态 #3833

Closed
mi-saka10032 opened this issue Jan 9, 2024 · 2 comments
Labels
to be published to be published

Comments

@mi-saka10032
Copy link

tdesign-vue-next 版本

1.7.2

重现链接

https://stackblitz.com/edit/vue3-tdesign-treeselect?file=package.json,src%2Fdemo.vue

重现步骤

  1. 点击输入框,输入筛选值并勾选内容。
    image

  2. 下拉框失焦,点击输入框清空勾选项(在不触发下拉框下拉列表的状态下点击clear图标)。
    image

  3. 输入框已不含勾选项,点击生成下拉框,下拉列表还处于筛选状态。
    image

  4. 第二种情况,在下拉框显示下拉列表的状态下点击clear图标清理勾选项,下拉列表会退出筛选状态。
    image
    image

期望结果

筛选项清空后,重新点击生成下拉列表应该完整显示。
除了这个场景外,每当我点击多个筛选项之后,下拉框失焦隐藏后重新点击显示下拉列表,列表也同样处在筛选状态,在onBlur时手动清空inputValue并赋值也不行。
个人理解,每次过滤搜索完成后,下次重新打开下拉框是否应该退出筛选状态恢复原来的列表,并且保持筛选项的勾选状态

实际结果

筛选项清空后,重新点击生成下拉列表还是筛选状态。

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

20.10.0

补充说明

No response

Copy link
Contributor

github-actions bot commented Jan 9, 2024

👋 @mi-saka10032,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

Copy link
Contributor

github-actions bot commented Jan 9, 2024

♥️ 有劳 @Godlike-meteor 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @mi-saka10032

PeterJayawesome pushed a commit to PeterJayawesome/tdesign-vue-next that referenced this issue Jan 18, 2024
filterByText change to computed in order to keep pace with innerInputValue

closed Tencent#3833, Tencent#3852
PeterJayawesome added a commit to PeterJayawesome/tdesign-vue-next that referenced this issue Jan 19, 2024
@uyarn uyarn added the to be published to be published label Jan 21, 2024
@uyarn uyarn closed this as completed in 1350ecf Jan 21, 2024
@uyarn uyarn reopened this Jan 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to be published to be published
Projects
None yet
Development

No branches or pull requests

3 participants