How to listen to the clicked event programmatically. For my purpose, I need to open a Modal when a date is clicked.