material icon indicating copy to clipboard operation
material copied to clipboard

md-select inside md-dialog has incorrect position

Open lmignot opened this issue 10 years ago • 10 comments

As per this codepen: http://codepen.io/anon/pen/vLBeBy When an md-select is placed inside an md-dialog the menu is not positioned correctly and the options are not clickable. keyboard navigation of the options still works.

I believe this is a similar issue to the one described in https://github.com/angular/material/issues/6023 however that specifies that it's in the docs whereas the issue affects md-select anywhere

lmignot avatar Dec 02 '15 13:12 lmignot

I've reproduced the same issue

DenisLaboureyras avatar Dec 02 '15 16:12 DenisLaboureyras

Checked that as well on my app. IMO theres a quick fix: set the z-index to 80 of the class md-backdrop.md-select-backdrop

md-backdrop.md-select-backdrop {
    z-index: 80;
    transition-duration: 0;
}

This could restore functionality as a provisional way

FabVillegas avatar Dec 02 '15 16:12 FabVillegas

I have the same issue, and the options are not clickable.

haochending avatar Dec 02 '15 21:12 haochending

@FabVillegas the z-index fixes the backdrop click problem but the position is obviously still off

matthiasg avatar Dec 03 '15 09:12 matthiasg

its helpful in the codepen to move the select to the right to see the error better.

http://codepen.io/matthiasg/pen/zrOeYQ

matthiasg avatar Dec 03 '15 09:12 matthiasg

fixed in rc6

matthiasg avatar Dec 03 '15 12:12 matthiasg

Confirm fixed in RC6.

villelahdenvuo avatar Dec 03 '15 14:12 villelahdenvuo

confirm fixed in RC6

lmignot avatar Dec 04 '15 08:12 lmignot

This is happening again.

7edda11: http://codepen.io/mckenzielong/pen/xZbqMQ <- broken One commit before: http://codepen.io/mckenzielong/pen/qbErvv <- fine

mckenzielong avatar Dec 07 '15 21:12 mckenzielong

+1

imamtauhid avatar Dec 08 '15 07:12 imamtauhid