naver / egjs-infinitegrid

A module used to arrange card elements including content infinitely on a grid layout.
https://naver.github.io/egjs-infinitegrid/
MIT License
2.23k stars 95 forks source link

If you add an element to isOverflowScroll option and destroy it, it will be removed. #403

Closed daybrush closed 3 years ago

daybrush commented 3 years ago

Description

If you add an element to isOverflowScroll option and destroy it, it will be removed.

<div class="wrapper">
   <div class="container">
   </div>
</div>
const ig = new InfiniteGrid(wrapper {
    isOverflowScroll: container,
});

ig.destroy();

If an existing container is used, it should not be removed.

Steps to check or reproduce