Skip to content

Commit

Permalink
Fix Code Snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
WebDevSimplified committed Dec 26, 2023
1 parent e7d7dfd commit 5587316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/2022-01/resize-observer/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ It is important to stop observing elements when they no longer need to be observ
new ResizeObserver((entries, observer) => {
entries.forEach(entry => {
if (entry.contentRect.width < 150) {
entry.target.remove()
observer.unobserve(entry.target)
entry.target.remove()
}
})
})
Expand Down

0 comments on commit 5587316

Please sign in to comment.