Skip to content

Commit

Permalink
fix(grid): fix grid mutation observer infinite loop (#2925)
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang committed Mar 12, 2022
1 parent 7da2628 commit 72534b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/grid/src/index.ts
Expand Up @@ -444,7 +444,7 @@ export class Grid<Container extends HTMLElement> {
const dispose = reaction(() => ({ ...this.options }), digest)
resizeObserver.observe(this.container)
mutationObserver.observe(this.container, {
attributeFilter: ['style', 'class', 'data-grid-span'],
attributeFilter: ['data-grid-span'],
attributes: true,
})
initialize()
Expand Down

0 comments on commit 72534b4

Please sign in to comment.