diff --git a/slick.grid.js b/slick.grid.js index 8b64a7b8..bbf0d181 100644 --- a/slick.grid.js +++ b/slick.grid.js @@ -2203,7 +2203,7 @@ if (typeof Slick === "undefined") { _bindingEventService.unbindByEventName(column, 'mouseleave', handleHeaderMouseHoverOff); }); - _container.replaceChildren(); + utils.emptyElement(_container); _container.classList.remove(uid); if (shouldDestroyAllElements) {