diff --git a/app/javascript/controllers/dropdown_controller.js b/app/javascript/controllers/dropdown_controller.js new file mode 100644 index 0000000..b5e8faa --- /dev/null +++ b/app/javascript/controllers/dropdown_controller.js @@ -0,0 +1,67 @@ +/* +# Dropdown controller + +* The menu appears on a mouseenter event on the trigger element. +* The menu disappears on a mouseleave event on the div surrounding the trigger and the menu. + +The HTML should be like the following + + +
- <%= description %> -
-+ <%= description %> +
+tablist
controller for the tabs.dropdown
controller for the account dropdown menu.hamburger
controller for the mobile menu.