I use angular-strap library to add datepicker element. The input element is in a row, and when I click row, I change it’s color. Now when I click on div with class datepicker, or other child table row the event is trigger. I need to prevent it. How can I do? Answer This piece of code should work.