From 4ba534bfc3e08c6596bda6a769a6feaf26cd8e55 Mon Sep 17 00:00:00 2001 From: Cory Duncan Date: Sun, 10 Dec 2023 04:05:14 -0800 Subject: [PATCH] fix: add contextElement to ReferenceProxy (#4446) Co-authored-by: Oleksandr Fediashov (cherry picked from commit 076f818839b7be82e31bfc14d599bd1efb17615a) --- src/modules/Popup/lib/createReferenceProxy.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/Popup/lib/createReferenceProxy.js b/src/modules/Popup/lib/createReferenceProxy.js index 8595ca6d94..c32953e403 100644 --- a/src/modules/Popup/lib/createReferenceProxy.js +++ b/src/modules/Popup/lib/createReferenceProxy.js @@ -21,6 +21,10 @@ class ReferenceProxy { get parentNode() { return this.ref.current ? this.ref.current.parentNode : undefined } + + get contextElement() { + return this.ref.current; + } } /**