- Issue created by @dpagini
First want to state... I came across an issue I'm trying to debug on, where, when I place a FullCalendar view on a page with views_embed_view($view, $display)
, the events are printing on the page twice. At first, I started to think I was seeing two containers in the HTML with the same ID, and maybe that was related, but I'm not sure that's related...
So when I place the calendar on the page, I am seeing that output HTML contains two divs with the same IDs, like:
<div class="views-element-container contextual-region">
<div class="contextual-region js-view-dom-id-09cd3014f0f58f8f4cbe9c3ac3aef8cbe6ee51a3b48b36a381816941fbbede91">
<div id="js-view-dom-id-09cd3014f0f58f8f4cbe9c3ac3aef8cbe6ee51a3b48b36a381816941fbbede91" class="fullcalendar--wrapper"> <!-- ***** <<< ****** HERE ****** -->
<div >
<div id="js-view-dom-id-09cd3014f0f58f8f4cbe9c3ac3aef8cbe6ee51a3b48b36a381816941fbbede91" class="fullcalendar--wrapper"></div><!-- ***** <<< ****** AND HERE ****** -->
<div id="fc-message"></div>
</div>
</div>
<div id="fc-message"></div>
</div>
Not 100% sure I follow how this works... but ultimately, the `views-view--fullcalendar.html.twig` file, when it prints the {{ rows }}
variable, it's re-printing the entire VIEW again. I'm actually not sure I understand what's happening here, or how it's not recursive (infinite).
Fix it?
??
??
??
Active
3.0
Code