Close dropdown by clicking on the trigger element