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

✨feat(grid): click on a blank space to deselect #WIK-16181 #31

Merged
merged 3 commits into from
Aug 5, 2024

Conversation

Maple13
Copy link
Contributor

@Maple13 Maple13 commented Aug 2, 2024

  • use textarea to support text editing and limit the height

- click on a blank space to deselect
- use textarea to support text editing and limit the height
@@ -64,5 +64,9 @@ export class AITableGridSelectionService {
const fieldId = colDom.getAttribute('fieldId');
fieldId && this.selectField(fieldId);
}

if (!cellDom && !colDom) {
this.clearSelection();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里如果点击到的是行前方的复选框,清空是不是就有问题了

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

没问题,document 的 mousedown 先执行,这时取消选中,然后执行复选框的 mousedown,又选上了

Maple13 added 2 commits August 2, 2024 17:12
# Conflicts:
#	packages/grid/src/components/cell-editors/text/text-editor.component.ts
#	packages/grid/src/services/event.service.ts
- use textarea to support text editing and limit the height
@Maple13 Maple13 changed the title ✨feat(grid): optimize styles #WIK-16181 ✨feat(grid): click on a blank space to deselect #WIK-16181 Aug 2, 2024
@huanhuanwa huanhuanwa merged commit 0b70d3d into develop Aug 5, 2024
7 checks passed
@huanhuanwa huanhuanwa deleted the maple13/#WIK-16181 branch August 5, 2024 01:47
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

Successfully merging this pull request may close these issues.

2 participants