/    Sign up×
Community /Pin to ProfileBookmark

CSS – dropdown view on top of a dialog

Hi,
I am building an Angular application, on which I have a dialog popup for creating a Quiz. Inside that dialog, I have a forum for providing the Quiz details,
One of these details is the list of the users to assign the Quiz to:
[upl-image-preview url=https://www.webdeveloper.com/assets/files/2020-04-14/1586860545-477995-image.png]

In order to do this, I am using [ng-bootstrap](https://ng-bootstrap.github.io/#/components/dropdown/examples)

`
<div id=”user-selection-container” ngbDropdown>
<button class=”btn btn-outline-primary” ngbDropdownToggle>{{ getUserSelectionButtonText() }}</button>
<div id=”user-selection-dropdown” ngbDropdownMenu>
<app-users-chooser (selectedUsersChanged)=”updateSelectedUsers($event)”></app-users-chooser>
</div>
</div>
`

The “app-users-chooser” is a component that displays the list of users to choose from.

The issue is, when I open this drop-down, it appears “inside” the dialog:
[upl-image-preview url=https://www.webdeveloper.com/assets/files/2020-04-14/1586860605-576216-image.png]

How can I make this drop-down to appear in from of everything?
I tried to change the z-index, but it did not help.
Maybe there is a better way to achieve this?
I would be glad for any helpsuggestions.

to post a comment
CSS

0Be the first to comment 😎

×

Success!

Help @Edan1991 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...