How to display entire option value when hovered in mat-autocomplete

后端 未结 1 1936
广开言路
广开言路 2021-01-28 13:46

This is demo app that uses mat-autocomplete, I picked from stackoverflow post enter link description here , I want to display option entire value. When the value is long. I fou

相关标签:
1条回答
  • 2021-01-28 14:08

    You have 3 ways to solve this

    1.Adding scroll to mat-option as you already have that in your question

    2.Giving width to mat-select, but this will also be issue if mat-option is too long.

    3.This option is to wrap text - add below css to mat-option

    .mat-option {
     word-break: break-all;
     white-space: normal;
     height: unset;
    }
    
    0 讨论(0)
提交回复
热议问题