fix: dropdown positioned at top-left on first click
Build and Deploy Verso / deploy (push) Successful in 15m17s
Build and Deploy Verso / deploy (push) Successful in 15m17s
Popper lazy-initializes on first open, causing it to place the menu at [0,0] before it has computed the toggle's position. renderOnMount forces Popper to initialize while the component is first mounted, so the position is ready before the user's first click. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+1
@@ -160,6 +160,7 @@ const DownloadPresentationButtonTooltip = memo(
|
|||||||
</DropdownToggle>
|
</DropdownToggle>
|
||||||
<DropdownMenu
|
<DropdownMenu
|
||||||
popperConfig={{ strategy: 'fixed' }}
|
popperConfig={{ strategy: 'fixed' }}
|
||||||
|
renderOnMount
|
||||||
flip
|
flip
|
||||||
>
|
>
|
||||||
<li role="none">
|
<li role="none">
|
||||||
|
|||||||
Reference in New Issue
Block a user