app/javascript/controllers/dropdown_controller.js
/**
   * show
   * Add the is-active class to show a dropdown
   */
show
Add the is-active class to show a dropdown
show Add the is - active class to show a dropdown
show() {
    this.buttonTarget.setAttribute('aria-expanded', "true")
    this.element.classList.add('is-active')
    this.menuTarget.classList.add('is-active')
  }
show ( ) { this . buttonTarget . setAttribute ( 'aria-expanded' , "true" ) this . element . classList . add ( 'is-active' ) this . menuTarget . classList . add ( 'is-active' ) }
show
 Add the is-active class to show a dropdown
show Add the is - active class to show a dropdown
//this.buttonTargets.forEach((b) => b.setAttribute('aria-expanded', "false")) //this.menuTargets.forEach((m) => m.classList.remove('is-active'))