Hi, I’m building a custom widget to display housing repairs bookings. I’d like to launch a popup when a booking is clicked on, so I’ve used the following html:
<a :href="bkpopurl+booking.id" class="no_history task-popup action_link modal_subpage" :data-subpage_id="bkpopid" data-display_footer="0" data-ts_interaction="link">
{{ booking.address }}
<span class="sr-only">, Record {{ booking.id }}</span>
</a>
This works fine, unless I select a day with no bookings, such as a Sunday and then select a day with bookings. Clicking a booking then doesn’t launch the popup.
It seems like maybe there’s an event listener that gets removed and not re-added when the html elements change?
Thanks,
James