Skip to content

Commit

Permalink
fix: element replaceChildren() not supported by salesforce (#895)
Browse files Browse the repository at this point in the history
- we can remove `.replaceChildren()` that is not supported in Salesforce (it basically doesn't like any functions using Node instead of Element), however we can simply replace the usage with our own `Utils.emptyElement(container);`
  • Loading branch information
ghiscoding authored Oct 31, 2023
1 parent 20565ad commit 2e09f25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slick.grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -2203,7 +2203,7 @@ if (typeof Slick === "undefined") {
_bindingEventService.unbindByEventName(column, 'mouseleave', handleHeaderMouseHoverOff);
});

_container.replaceChildren();
utils.emptyElement(_container);
_container.classList.remove(uid);

if (shouldDestroyAllElements) {
Expand Down

0 comments on commit 2e09f25

Please sign in to comment.