I have added two buttons inside a cell by using custom render. I have added click to both of the buttons. But they are not getting triggered on clicking them. I have created an example below:-
Click function inside cell not getting triggered
it looks like the click event is stolen. Have you tried to attach a class to the element and the use the addEventListener
on click
?
You may also try to use the afterOnCellMouseDown
hooks that returns an event - the event.target
should differ if the user clicked the button.
@aleksandra_budnik I tried using afterOnCellmouseDown
and it really helped me. I was able to differ using event.realTarget
Thanks
Great thank you for confirmation.