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

[Bug] clearSelected API无法清除ctrl + A. 选中的单元格 #2115

Closed
feEden opened this issue Jul 22, 2024 · 2 comments · Fixed by #2119
Closed

[Bug] clearSelected API无法清除ctrl + A. 选中的单元格 #2115

feEden opened this issue Jul 22, 2024 · 2 comments · Fixed by #2119
Assignees
Labels
bug Something isn't working

Comments

@feEden
Copy link

feEden commented Jul 22, 2024

Version

1.5.3

Link to Minimal Reproduction

https://codesandbox.io/p/sandbox/vtable-export-umd-forked-c33q9r?file=%2Fsrc%2Findex.ts%3A78%2C1

Steps to Reproduce

如codesandbox所示

Current Behavior

  1. ctrl + a 选中所有单元格,调用clearSelected, 无法取消选中。单击选中或者点击表头选中是可以做到取消的
  2. 配置了outsideClickDeselect=true 点击非表格外的区域无法取消选中,只有点击canvas区域才行

Expected Behavior

  1. ctrl + a 选中所有单元格,调用clearSelected, 应该取消选中
  2. 配置了outsideClickDeselect=true 点击非表格外的区域应该取消选中

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

@feEden feEden added the bug Something isn't working label Jul 22, 2024
@fangsmile fangsmile self-assigned this Jul 23, 2024
@fangsmile
Copy link
Contributor

20240723120314_rec_
我这试了下outsideClickDeselect 没问题哦

@fangsmile fangsmile linked a pull request Jul 23, 2024 that will close this issue
21 tasks
@feEden
Copy link
Author

feEden commented Sep 2, 2024

20240723120314_rec_ 20240723120314_rec_ 我这试了下outsideClickDeselect 没问题哦

@fangsmile 选中单个是没问题,选中多个无法取消

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
None yet
Development

Successfully merging a pull request may close this issue.

2 participants