Skip to content

Commit 86ba92e

Browse files
committed
Minor refactor
1 parent 6df6f68 commit 86ba92e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/with-size.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ function withSize(config = defaultConfig) {
259259
this.detector.listenTo(this.domEl, this.checkIfSizeChanged)
260260
} else if (
261261
(this.domEl.isSameNode && !this.domEl.isSameNode(found)) ||
262-
(!this.domEl.isSameNode && this.domEl !== found)
262+
this.domEl !== found
263263
) {
264264
this.uninstall()
265265
this.domEl = found

0 commit comments

Comments
 (0)