fix: Menu does not appear on scroll in Dashboard (#14566)

* Fix menu

* Fix test
This commit is contained in:
Geido 2021-05-11 21:38:58 +03:00 committed by GitHub
parent eaeb8f71c8
commit b960843015
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 6 deletions

View File

@ -65,7 +65,7 @@ const editModeOnProps = {
function setup(props: HeaderDropdownProps) {
return (
<div className="dashboard">
<div className="dashboard-header">
<HeaderActionsDropdown {...props} />
</div>
);

View File

@ -317,7 +317,7 @@ class HeaderActionsDropdown extends React.PureComponent {
overlay={menu}
trigger={['click']}
getPopupContainer={triggerNode =>
triggerNode.closest(SCREENSHOT_NODE_SELECTOR)
triggerNode.closest('.dashboard-header')
}
>
<DropdownButton id="save-dash-split-button" role="button">

View File

@ -603,7 +603,3 @@ hr {
top: 269px !important;
}
}
.ant-dropdown.ant-dropdown-placement-bottomRight {
top: 133px !important;
}