Mat select options showing behind the Dialog

前端 未结 2 754
甜味超标
甜味超标 2021-01-12 14:42

I am including form inputs, mat select with options and autocomplete field with options too into a matDialog box. The problem is that the options are showing behind the Dial

2条回答
  •  时光说笑
    2021-01-12 15:10

    I too had the same issue. As you have found out, this bug is due to the conflicts of z-indices. So I put the following CSS in my global.css which solved the issue:

    .cdk-overlay-container, .cdk-overlay-pane {
         z-index: 9999 !important;
    }
    

提交回复
热议问题