philkman PRO said almost 4 years ago on Hotwire Modals :
Correction to my last answer: You need to add '@rails/ujs' first