Hello!
First of all, great framework! It does wonders on an existing rails backend.
I have a small issue where I use Bootstrap nav tabs and its events(https://getbootstrap.com/docs/4.1/components/navs/#events).
I’m trying to call a function when the shown.bs.tab
is triggered. I tried to bind my function with shown.bs.tab->foo#bar
but it doesn’t get called.
I’m sure that the DOM element having the data-action
which is a simple <a>
, is the correct one: if I try to bind an event listener on show.bs.tab
using JQuery, it works as expected.
My guess is that the event name, show.bs.tab
, can be an issue when Stimulus parses it. Perhaps having dots in the name is the problem.
Anyone has dealt with this before?
I workaround the situation using click->foo#bar
but my event listener would be greatly simplified if I was able to call it on the proper event.