Dropdown menu not closing

How to hide dropdown menu on second click using dropdown image widget and pseudo class (focus-within) on that image. This is the implementation done is scass file and this is the widget that I’ve used. The menu remains open and closes by clicking anywhere else than the button(dropdown image) itself. I want to close that menu on clicking the button.  
0 answers