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

[Tree]点击和键盘操作在onSelect等事件中的参数不一致 #2899

Closed
kevinat opened this issue Apr 17, 2021 · 0 comments · Fixed by #4863
Closed

[Tree]点击和键盘操作在onSelect等事件中的参数不一致 #2899

kevinat opened this issue Apr 17, 2021 · 0 comments · Fixed by #4863
Assignees
Labels
🐞 Bug Something isn't working

Comments

@kevinat
Copy link

kevinat commented Apr 17, 2021

Component

Tree

Reproduction link

https://fusion.design/pc/component/tree

Steps to reproduce

官网异步加载示例中,用键盘操作就可重现问题

点击选中和键盘回车选中都会触发onSelect事件,但接收到的参数结构不一致,导致按点击操作编写的代码在键盘操作时出现异常,需要自行做兼容处理;onExpand和loadData事件都有类似问题;
例如在onSelect事件中获取pos:

  • 鼠标点击:extra.node.props.pos
  • 键盘操作:extra.node.pos

希望能保持事件参数结构一致

@YunMeng99 YunMeng99 added the 🐞 Bug Something isn't working label Aug 14, 2023
@YSMJ1994 YSMJ1994 added the Next release issues to close in next release label Mar 13, 2024
@kyokaxin kyokaxin removed the Next release issues to close in next release label Apr 26, 2024
@eternalsky eternalsky linked a pull request Jun 19, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 Bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

7 participants