Closed mably closed 6 months ago
Can you please elaborate on the "refresh" part? It would help me if you could describe the problem you are facing.
Thanks for your quick answer.
Practically, some Ajax command is trying to render my <img-comparison-slider>
template code into a CKEditor 5 instance.
The correct HTML is injected into the page but not rendered properly as I guess ICS is only doing its things on page load.
I would like to be able to redo it after that Ajax command is executed.
For the context, I'm working on an ICS module for Drupal: https://www.drupal.org/project/ics
Hence, it's a web component that should work for any newly injected <img-comparison-slider>
tag. As soon as you have the necessary JS included. If it is not happening, there might be a bug. Before assuming it's a bug, can you ensure you have the needed JS on the page?
Indeed, I will check that, thanks for your help.
You were right, Image Comparison Slider javascript was not loaded.
Here is the related Drupal issue for those interested: https://www.drupal.org/project/drupal/issues/3072317
In our case we are trying to inject the
<img-comparison-slider>
element dynamically into the page DOM via Ajax.Thanks for your help.