Fix dropdown close the menu on collapse