From eddd352d475f30159279c265510e61725157bd17 Mon Sep 17 00:00:00 2001 From: 1012Charan Date: Sat, 31 May 2025 12:11:37 +0530 Subject: [PATCH] fix: forward Popper.js attributes to Popup wrapper div --- src/modules/Popup/Popup.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/modules/Popup/Popup.js b/src/modules/Popup/Popup.js index 5b24f7a8e7..f245d627a5 100644 --- a/src/modules/Popup/Popup.js +++ b/src/modules/Popup/Popup.js @@ -229,12 +229,11 @@ const Popup = React.forwardRef(function (props, ref) { // A wrapping `div` there is a pure magic, it's required as Popper warns on margins that are // defined by SUI CSS. It also means that this `div` will be positioned instead of `content`. return createHTMLDivision(popper || {}, { - overrideProps: { + ooverrideProps: { + ...popper?.attributes?.popper, children: innerElement, ref: popperRef, style: { - // Fixes layout for floated elements - // https://github.com/Semantic-Org/Semantic-UI-React/issues/4092 display: 'flex', ...popperStyle, },