Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MatSelectItem inside modal shows item on the wrong z-layer #844

Open
IIARROWS opened this issue Feb 8, 2021 · 4 comments
Open

MatSelectItem inside modal shows item on the wrong z-layer #844

IIARROWS opened this issue Feb 8, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@IIARROWS
Copy link

IIARROWS commented Feb 8, 2021

Placing a MatSelectItem inside a modal dialog (bootstrap) and clicking on it, the options are hidden and covered by the modal itself (default z-index: 1050).

I tried using BlazorFiddle, but it works well there, but it also produces a different layout for the items list, nesting HTML directly inside of the control instead of the bottom of the page.
https://blazorfiddle.com/s/vxsjs8zg

Screenshots
image

Found in version 2.8.0

@IIARROWS IIARROWS added the bug Something isn't working label Feb 8, 2021
@IIARROWS IIARROWS changed the title MatSelectItem inside modal shows item on the wrong layer MatSelectItem inside modal shows item on the wrong z-layer Feb 8, 2021
@IIARROWS
Copy link
Author

IIARROWS commented Feb 8, 2021

I would like to understand why the difference with blazorfiddle, I guess it's using an older version?
This could help understand the issue, which could be resolved just by changing z-index property of .mdc-menu-surface from 8 to something higher then 1050 (I cannot confirm a safe value).

@wa1gon
Copy link

wa1gon commented Feb 10, 2021

I am having the same issue. I am using Blazored.Modal.

How does one change the z-index on .mdb-menu-surface and where?

@IIARROWS
Copy link
Author

IIARROWS commented Feb 11, 2021 via email

@Christian-Oleson
Copy link
Contributor

@IIARROWS ,
MatBlazor and Bootstrap should not be used together. Material Design and Bootstrap are competing design paradigms, and they don't play well together.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants