In my component, there are two elements: 'order information' and a 'datepicker'. When clicking on the component, it will display the order information.
However, I want to prevent the click event from being triggered if the user clicks on the datepicker icon. To achieve this, I'm attempting the following logic:
<app-order-info
(click)="$event.target.classList.contains('icon-mydrpcalender') ? null : showOrdersinfo()"
>
</app-order-info>
This approach is only effective in Chrome. In other browsers like Firefox and Internet Explorer, the click event still fires even when clicking on the datepicker icon.
How can I go about resolving this issue?