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

[Select] reserveKeyword filterable multiple 属性时,列表搜索功能不符合预期 #2895

Closed
cdevq opened this issue May 13, 2024 · 2 comments
Assignees
Labels
🐞 bug Something isn't working to be published fixed, not be published

Comments

@cdevq
Copy link

cdevq commented May 13, 2024

tdesign-react 版本

1.7.0

重现链接

https://stackblitz.com/edit/react-squhyp-dfkfd9?file=src%2Fdemo.jsx

重现步骤

  1. 输入关键字搜索:iPhone
  2. 下拉列表中,显示 iPhone 14iPhone 15 这两项
  3. 选择 iPhone 14

期望结果

因为使用了 'reserveKeyword={true}' 属性,下拉列表中,用户选中其中一项后,期望下拉列表选择框,仍然保持 iPhone 14iPhone 15 这两项过滤,让用户继续选择其它的 iPhone,例如 iPhone 15

实际结果

下拉列表做了一次刷新,把所有选项都显示出来了

框架版本

React(18.3.1)

浏览器版本

Chrome(124.0.6367.201)

系统版本

Window10(22H2)

Node版本

v18.18.0

补充说明

如果把 Select 组件的 value,onChange 属性都去掉,则没有上述问题,效果符合预期;

Copy link
Contributor

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

@NWYLZW NWYLZW added enhancement New feature or request 🐞 bug Something isn't working and removed enhancement New feature or request labels May 14, 2024
@uyarn uyarn self-assigned this May 14, 2024
@uyarn uyarn added the to be published fixed, not be published label May 15, 2024
@uyarn
Copy link
Collaborator

uyarn commented May 16, 2024

fixed 1.7.1

@uyarn uyarn closed this as completed May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working to be published fixed, not be published
Projects
None yet
Development

No branches or pull requests

3 participants