dropout menus are actually pretty easy to do without js
all you need is focus-within and friends.
like i recently made one on my personal project (which fully works without js, which is only used for realtime chat functionality and some additional effects, like loading icons in forms and stuff)