Skip to content

Commit

Permalink
Update dropdown.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo-Le-Goff authored Nov 19, 2024
1 parent 9d1b881 commit ea22637
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,6 @@ export default class extends Controller {
// Ensures the menu is hidden before Turbo caches the page
beforeCache() {
this.openValue = false
this.menuTarget.classList.add("hidden")
this.menuTarget.classList.add(this.transitionOptions.toggleClass)
}
}

0 comments on commit ea22637

Please sign in to comment.