I am using leafletjs library. I want to hide the side menu (Component) by clicking on the marker, but this is not working. Alert on the hidden() function is working when cli