We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7eebb4e commit 2a11585Copy full SHA for 2a11585
components/dash-core-components/src/fragments/Dropdown.tsx
@@ -420,7 +420,12 @@ const Dropdown = (props: DropdownProps) => {
420
</button>
421
</Popover.Trigger>
422
423
- <Popover.Portal>
+ <Popover.Portal
424
+ // container is required otherwise popover will be rendered
425
+ // at document root, which may be outside of the Dash app (i.e.
426
+ // an embedded app)
427
+ container={dropdownContainerRef.current?.parentElement}
428
+ >
429
<Popover.Content
430
ref={dropdownContentRef}
431
className="dash-dropdown-content"
0 commit comments