We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7d7dfd commit 5587316Copy full SHA for 5587316
src/pages/2022-01/resize-observer/index.mdx
@@ -95,8 +95,8 @@ It is important to stop observing elements when they no longer need to be observ
95
new ResizeObserver((entries, observer) => {
96
entries.forEach(entry => {
97
if (entry.contentRect.width < 150) {
98
- entry.target.remove()
99
observer.unobserve(entry.target)
+ entry.target.remove()
100
}
101
})
102
0 commit comments