Toggling dark/light mode doesn't untoggle dropdown