Open TCCDevelopment opened 1 year ago
Hey @TCCDevelopment, this must be something specific to your application. Have you overwritten any function which would impact the render behavior of Turbo?
FWIW, the event listener is correct and is how you need to setup the bootstrap popovers. I guess that the error is not directly related to the Popovers itself.
@marcoroth, I have double-checked and do not see anything in my repo history that would fit that suggestion. IE, I don't believe that I have overwritten any function. :-/
I get the same error. @TCCDevelopment did you manage to solve it?
I get a console error when I click on a link within my webpage, but if I refresh that page, the error goes away. But comes back when I click on another link to go to a different page. Here is the error.
It seems that some of the third party JS was not reloaded (specifically Bootstrap's Popover), while other JS was (ie Bootstrap's modal and dropdowns).
What I did to fix
I wrapped the Popover initialization code in an Event Listener:
This allows the popovers to still work on navigating via links; even though I am still getting the console error listed above.
Any help you can give would be appreciated. Thank you. Happy Coding!