fix: Double scrollbars on search filter dropdowns

closes #1125
This commit is contained in:
Tom Moor 2019-12-23 18:08:40 -08:00
parent 595cb9cda5
commit 76365e8560
2 changed files with 2 additions and 10 deletions

View File

@ -86,20 +86,12 @@ const SearchFilter = props => {
position="right"
>
{({ closePortal }) => (
<MaxHeightScrollable>
<Content>{props.children({ closeMenu: closePortal })}</Content>
</MaxHeightScrollable>
<Content>{props.children({ closeMenu: closePortal })}</Content>
)}
</DropdownMenu>
);
};
const MaxHeightScrollable = styled(Scrollable)`
max-height: 50vh;
margin: -8px 0;
padding: 8px 0;
`;
const DropdownButton = styled(SearchFilter)`
margin-right: 8px;
`;

View File

@ -319,7 +319,7 @@ export default class DocumentsStore extends BaseStore<Document> {
existing.splice(options.offset || 0, options.limit || 0, ...results);
this.searchCache.set(query, existing);
return data;
return res.data;
};
@action