Skip to content

Tag: dropdown

Close Dropdown when other Dropdown is toggled active

i am trying to close let´s say Dropdown A automatically, when Dropdown B gets classList.toggle(“active) (in this case i toggle the ClassList with a Click) I can open (classList.toggle(“active)) and close (classList.toggle(“inactive)) it manually, but i want to close it automatically. Right n…