diff --git a/client/src/common/classes.js b/client/src/common/classes.js
index ba9837ce7..fed98ed41 100644
--- a/client/src/common/classes.js
+++ b/client/src/common/classes.js
@@ -40,6 +40,8 @@ const CLASSES = {
DATATABLE_EMPTY_STATUS_DESC: 'datatable-empty-status__desc',
DATATABLE_EMPTY_STATUS_ACTIONS: 'datatable-empty-status__actions',
+ SELECT_LIST_FILL_POPOVER: 'select-list--fill-popover',
+
...Classes,
};
diff --git a/client/src/components/AccountsSelectList.js b/client/src/components/AccountsSelectList.js
index 4b1f67593..5eae83ea0 100644
--- a/client/src/components/AccountsSelectList.js
+++ b/client/src/components/AccountsSelectList.js
@@ -4,6 +4,7 @@ import { Select } from '@blueprintjs/select';
import { FormattedMessage as T } from 'react-intl';
import classNames from 'classnames';
import { isEmpty } from 'lodash';
+import { CLASSES } from 'common/classes';
export default function AccountsSelectList({
accounts,
@@ -12,6 +13,7 @@ export default function AccountsSelectList({
defaultSelectText = 'Select account',
onAccountSelected,
disabled = false,
+ popoverFill = false,
filterByRootTypes = [],
filterByTypes = [],
filterByNormal
@@ -61,7 +63,7 @@ export default function AccountsSelectList({
const accountItem = useCallback((item, { handleClick, modifiers, query }) => {
return (
} />}
itemRenderer={accountItem}
itemPredicate={filterAccountsPredicater}
- popoverProps={{ minimal: true }}
+ popoverProps={{ minimal: true, usePortal: !popoverFill, inline: popoverFill }}
filterable={true}
onItemSelect={onAccountSelect}
disabled={disabled}
- className={classNames('form-group--select-list')}
+ className={classNames('form-group--select-list', {
+ [CLASSES.SELECT_LIST_FILL_POPOVER]: popoverFill,
+ })}
>