You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using a knockout foreach to put in elements into the carousel. I'm thinking that glide.js is trying to remove my child nodes that are added after knockout has already removed them. <!-- ko foreach: {data: cameraStreamerData, as: 'canvasInfo', afterAdd: updateCarousel} --> <!-- ko if: canvasInfo.enabled --> <li class="glide__slide" data-bind="attr: {id: 'glide-slide-' + $index()"> <camera-streamer params="canvasClass: 'primary', canvasIndex: $index, canvasInfo: canvasInfo" data-bind="width: canvasWidth() + 'px', height: canvasHeight() + 'px' " ></camera-streamer> <!-- <camera-streamer style="height: 1500px; width: 1500px" params="canvasClass: 'secondary', canvasIndex: $index, canvasInfo: canvasInfo"></camera-streamer><--> </li> <!-- /ko --> <!-- /ko -->
This could be fixed by adding the suggested change here:
`
/**
* Remove all cloned slides.
*
* @return {Void}
*/
remove: function remove() {
var items = this.items;
for (var i = 0; i < items.length; i++) {
if (Components.Html.wrapper.contains(items[i]))
{
Components.Html.wrapper.removeChild(items[i]);
}
}
}
};
`
Please let me know if there is another workaround that I'm unaware of.
The text was updated successfully, but these errors were encountered:
I'm using a knockout foreach to put in elements into the carousel. I'm thinking that glide.js is trying to remove my child nodes that are added after knockout has already removed them.
<!-- ko foreach: {data: cameraStreamerData, as: 'canvasInfo', afterAdd: updateCarousel} --> <!-- ko if: canvasInfo.enabled --> <li class="glide__slide" data-bind="attr: {id: 'glide-slide-' + $index()"> <camera-streamer params="canvasClass: 'primary', canvasIndex: $index, canvasInfo: canvasInfo" data-bind="width: canvasWidth() + 'px', height: canvasHeight() + 'px' " ></camera-streamer> <!-- <camera-streamer style="height: 1500px; width: 1500px" params="canvasClass: 'secondary', canvasIndex: $index, canvasInfo: canvasInfo"></camera-streamer><--> </li> <!-- /ko --> <!-- /ko -->
This could be fixed by adding the suggested change here:
`
/**
* Remove all cloned slides.
*
* @return {Void}
*/
remove: function remove() {
var items = this.items;
`
Please let me know if there is another workaround that I'm unaware of.
The text was updated successfully, but these errors were encountered: