I try to extend the items table with a custom action button that opens a modal with content.
Also, I want to open the item details modal on row click. This is the default behavior of the items table.
The problem is my custom action button is the child of the table row. So, when I click on the custom button, row click event also triggers. Normally this issue solves by adding event.stopPropagation() to the child component’s click handler. But it’s not working as expected neither stopImmediatePropagation not working too.
Is there any way to stop propagation? or how can I programmatically open the item details modal?
Inside you can detect from the event target if the click originates from the .table-action-button you introduced or not. That should cover more scenarios.
To open an item detail modal, use: model.collection.setActiveItem(model);
Hi @aunaz sorry for the delay in getting back to you. Our team are looking into it and will provide you with an answer once they have identified the solution. Thanks for your patience.