馃摎 Add hook to "destroy" or "unload" the Loop Carousel instance #22894
rmorse
started this conversation in
Feature Request
Replies: 1 comment
|
It would be great to have this issue fixed in Elementor. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Prerequisites
What problem is your feature request going to solve? Please describe.
This is borderline bug / feature request.
I'm trying to integrate our plugin with the Loop Carousel (we've already successfully integrated with the Loop Grid)
However I'm having issue with the Loop Carousel as its throwing an error whenever we update the HTML.
I think we need a way to "destroy" or "unload" the Loop Carousel JS.
Our integration with the Loop Grid works something like this:
window.elementorFrontend.elementsHandler.runReadyTriggeron the Elementor Elements to re-init them after the search has happened.So far so good.
However the issue is with the loop Carousel. As soon as we replace the HTML in the carousel, we get a JS error:
What I think we need is a way to stop/unload the JS events of the loop carousel.
Describe the solution you'd like
That got me thinking, it would be really handy if an Element that has JS, always had an "unload" function (I don't see this in the docs) so it would be consistently implemented across all elements that need it.
Describe alternatives you've considered
No response
Additional context
No response
All reactions