You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the use-case or motivation for changing an existing behavior?
Text can be long in options, the user should not have the option text hidden from them.
For translated text that is longer than the source text this can happen more frequently.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Activity
fxck commentedon Sep 21, 2017
related #3883
dixy commentedon Oct 17, 2017
In a select in multiple selection mode, the option text is entirely hidden for long options on at least Firefox and IE 11.
Firefox 56
Chrome 61 is almost good (two dots hidden)
fix(select): option not truncated correctly in multiple mode
crisbeto commentedon Oct 17, 2017
That is a separate issue from the one being discussed here @dixy, but thanks for the report. It should be fixed by #7857.
fix(select): option not truncated correctly in multiple mode
fix(select): option not truncated correctly in multiple mode
fix(select): option not truncated correctly in multiple mode
fix(select): option not truncated correctly in multiple mode (#7857)
UncleJimmy commentedon Mar 8, 2018
I want to add a tooltip on this "mat-option-text" as workaround, is there any way we could know the text is truncated or not?
Hydhen commentedon Feb 28, 2019
@UncleJimmy I've seen this workaround :
From this link
But I didn't succeeded on getting the propeties from an element node, i'm stuck to this point :
Hydhen commentedon Feb 28, 2019
Just find out you can do this :
It works well, but it evaluates according to the number of caracters and not if the text is ellipsed or not
jelbourn commentedon Nov 25, 2020
The MDC-based version of
MatSelectwraps option text:https://stackblitz.com/edit/angular-mdc-issue-md2tzg?file=src%2Fapp%2Fexample-component.html
This is in material-experimental now and will eventually replace the existing
MatSelect[-][md-select] Long options are truncated[/-][+]MatSelect: Long options are truncated[/+]adityakmehta commentedon Nov 12, 2021
Hi.. was anyone able to find solution to Resizing the mat-option with height and line-height for the mat-autocomplete alters the autocomplete keyboard scrolling #10038 ?
oleg-golota commentedon Nov 15, 2021
I also need this bug #10038 to be fixed. I wonder why it was closed?
Totati commentedon Nov 15, 2021
It was marked as duplicate.
amysorto commentedon Nov 2, 2022
Text wraps instead of truncating in the MDC based select component coming soon in v15, I am closing this bug.
angular-automatic-lock-bot commentedon Dec 3, 2022
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.