Activity
Just posting for those trying to use Bootstrap 5. Your connect function will work after you import Bootstrap and will look like so. Hope this helps:
new bootstrap.Toast(this.element).show();
Another shortcut to the root route is that you can drop the to:
root: "main#index"
I know this is old but you can add an event listener in application.js
:
document.addEventListener("trix-file-accept", (e) => {
e.preventDefault()
})
and then target the UI with CSS in application.scss
:
.trix-button-group--file-tools {
display: none !important;
}
I am having the same issue. I did find out that in the event, event.item.dataset.id
is empty. I am not sure why.
Did you find a solution? I am wondering the same thing.
Posted in Tabs with Stimulus
Ok Chris I just joined here and this package makes it worth it. A smooth dropdown menu. Great job and thanks.