Action descriptor and Bootstrap events



First of all, great framework! It does wonders on an existing rails backend. :+1:

I have a small issue where I use Bootstrap nav tabs and its events(
I’m trying to call a function when the is triggered. I tried to bind my function with>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 using JQuery, it works as expected.

My guess is that the event name,, 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.


Is a native event or a jQuery event? I think Stimulus doesn’t not work with jQuery events.


Ah yes, you must be right. I’ll take time to check that.

Thanks for your input!