I have a question regarding overlay and datepicker with Angular Material. I’m using the overlayOutsideClick event to close the overlay whenever I click outside the overlay.
It’s working fine but if I have a datepicker and I choose a date it is considered as a click outside the overlay, how can I prevent this behavior ?
Thanks
Here is a stackblitz to reproduce the situation:
https://stackblitz.com/edit/ghjvsh-zy2lf2?file=src%2Fexample%2Fcdk-overlay-basic-example.html
Ggros is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.