Skip to content

Commit 2e09f25

Browse files
authored
fix: element replaceChildren() not supported by salesforce (#895)
- 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);`
1 parent 20565ad commit 2e09f25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

slick.grid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2203,7 +2203,7 @@ if (typeof Slick === "undefined") {
22032203
_bindingEventService.unbindByEventName(column, 'mouseleave', handleHeaderMouseHoverOff);
22042204
});
22052205

2206-
_container.replaceChildren();
2206+
utils.emptyElement(_container);
22072207
_container.classList.remove(uid);
22082208

22092209
if (shouldDestroyAllElements) {

0 commit comments

Comments
 (0)