-
Notifications
You must be signed in to change notification settings - Fork 269
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
[ACS-8247] Fixed empty context menu for DataTable row #9999
Conversation
@@ -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'))) { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
9418947
to
a0b0dd0
Compare
Quality Gate passedIssues Measures |
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (check one with "x")
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")
If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...
Other information: