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

[ACS-8247] Fixed empty context menu for DataTable row #9999

Merged
merged 2 commits into from
Aug 6, 2024

Conversation

nikita-web-ua
Copy link
Contributor

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (check one with "x")

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation
  • Other... Please describe:

What is the current behaviour? (You can also link to an open issue here)

https://hyland.atlassian.net/browse/ACS-8247

What is the new behaviour?

The area around the checkbox is now treated the same as the rest of the data table row.

Does this PR introduce a breaking change? (check one with "x")

  • Yes
  • No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...

Other information:

@nikita-web-ua nikita-web-ua marked this pull request as ready for review July 26, 2024 13:52
@@ -699,6 +699,13 @@ export class DataTableComponent implements OnInit, AfterContentInit, OnChanges,
}
}

onCheckboxLabelClick(row: DataRow, event: MouseEvent) {
const target = event.target as HTMLElement;
if (!(target.tagName === 'MAT-CHECKBOX' || target.closest('mat-checkbox'))) {
Copy link
Contributor

Choose a reason for hiding this comment

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

can we have some data-attribute instead? otherwise we hardcode the material checkbox there, and things might break later if we change the component

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good point, replaced with attribute, thanks

@nikita-web-ua nikita-web-ua force-pushed the dev-mmaliarchuk/ACS-8247-empty-context-menu branch from 9418947 to a0b0dd0 Compare August 5, 2024 13:16
Copy link

sonarcloud bot commented Aug 5, 2024

@nikita-web-ua nikita-web-ua merged commit c9b8059 into develop Aug 6, 2024
33 checks passed
@nikita-web-ua nikita-web-ua deleted the dev-mmaliarchuk/ACS-8247-empty-context-menu branch August 6, 2024 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants