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] 点开多选下拉框弹窗,点击曾经选中的项,设置为不选中,此时无法知道当前那一项被取消勾选 #3334

Closed
zedwei2 opened this issue Jan 16, 2025 · 2 comments

Comments

@zedwei2
Copy link

zedwei2 commented Jan 16, 2025

tdesign-react 版本

1.10.4

重现链接

https://stackblitz.com/edit/dj7vwsd9?file=src%2Fdemo.tsx

重现步骤

点开多选下拉框弹窗,点击曾经选中的项,设置为不选中,onChange事件中,此时无法知道当前那一项被取消勾选

期望结果

下拉弹窗中取消某项选中时,onChange事件中 context.option 参数能拿到值 或 onRemove事件能触发

实际结果

onChange事件中 context.option 参数拿不到当前操作的选项

框架版本

18.2.0

浏览器版本

No response

系统版本

window

Node版本

node16.15.1

补充说明

No response

Copy link
Contributor

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

@zedwei2 zedwei2 closed this as completed Jan 16, 2025
@zedwei2
Copy link
Author

zedwei2 commented Jan 16, 2025

console.log('current data', value, v, context, context.option);
通过 value 和 v 数据长度比对 暂时能知道被移除的项是那个了 所以关闭此单。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant