Tailwind on Rails

Описание к видео Tailwind on Rails

"Click outside element to hide it" - this might be one of the most common javascript tasks!

We will leverage Stimulus-use and it's clickOutside behaviour to trigger an action on a stimulus controller. In our case - to close the dropdown menu.

Episode source code: https://github.com/corsego/138-tailwi...
Based on this blogpost: https://blog.corsego.com/tailwindcss-...

P.S. 🙈 Really, I just forgot to include this feature in the previous episode, so here you go. This might be my shortest episode yet!

Комментарии

Информация по комментариям в разработке