Clicking a Kendo Angular Button or kendoGridRemoveCommand (kendoTreeListRemoveCommand) button, defined in kendoGridCellTemplate (respectively kendoTreeListCellTemplate) triggers component events - cellClick, selectionChange, seletedKeysChange.
The events are emitted only when clicking the text of the button (inner span element with class="k-button-text"). Clicking the surrounding area of the text (highlighted below) triggers only the click event of the button:
Describe the bug
Clicking a Kendo Angular Button or
kendoGridRemoveCommand
(kendoTreeListRemoveCommand
) button, defined inkendoGridCellTemplate
(respectivelykendoTreeListCellTemplate
) triggers component events -cellClick
,selectionChange
,seletedKeysChange
.The events are emitted only when clicking the text of the button (inner span element with
class="k-button-text"
). Clicking the surrounding area of the text (highlighted below) triggers only theclick
event of the button:To Reproduce Open the console and click the Test or Remove button Grid - https://stackblitz.com/edit/angular-vjjkzx TreeList - https://stackblitz.com/edit/angular-5axwa3
Expected behavior The custom buttons should not trigger other component events just
click
event.