Mat-select panel min-width

前端 未结 4 1321
灰色年华
灰色年华 2021-02-10 15:00

I\'m trying to customize mat-select with multiple checkboxes. for some reason the panel get wrong min-width as below:

and I don\'t know where its calculating t

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-10 15:50

    I used another approach. Just added this piece of code to global style.

    .mat-select-panel {
    // some your code
      &.ng-animating {
           visibility: hidden;
        }
      }
    

    You can try this solution on DEMO StackBlitz.
    Hack with opacity did not fix jumping width when select is closing.

提交回复
热议问题