Skip to content

Commit

Permalink
fix: add contextElement to ReferenceProxy (#4446)
Browse files Browse the repository at this point in the history
Co-authored-by: Oleksandr Fediashov <[email protected]>
(cherry picked from commit 076f818)
  • Loading branch information
CoryDuncan authored and layershifter committed Dec 10, 2023
1 parent c88e684 commit 4ba534b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/modules/Popup/lib/createReferenceProxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ class ReferenceProxy {
get parentNode() {
return this.ref.current ? this.ref.current.parentNode : undefined
}

get contextElement() {
return this.ref.current;
}
}

/**
Expand Down

0 comments on commit 4ba534b

Please sign in to comment.