Make list pop out of dialog and added scrollbar (#17244)

This commit is contained in:
Erik Jan de Wit 2023-03-21 11:34:31 +01:00 committed by GitHub
parent 0ddb0f9022
commit 6d82e5634f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -90,6 +90,7 @@ export class PermissionSelect extends React.Component<PermissionSelectProps, Per
<Msg msgKey='selectPermissions' />
</span>
<Select
maxHeight={300}
direction={this.props.direction || 'down'}
variant={SelectVariant.typeaheadMulti}
typeAheadAriaLabel={Msg.localize("selectPermissions")}
@ -100,6 +101,7 @@ export class PermissionSelect extends React.Component<PermissionSelectProps, Per
isOpen={isExpanded}
aria-labelledby={titleId}
placeholderText={Msg.localize("selectPermissions")}
menuAppendTo="parent"
>
{this.state.scopes}
</Select>