Cannot copy option set value using mouse in angular material

500 views Asked by At

When I set mat-select as disabled I cannot copy value from this field using mouse. When I am trying to copy value from other disabled fields like text input this problem doesn't exist. Is there any way to do this?

1

There are 1 answers

0
Iwoo On BEST ANSWER

So base on this answer: Prevent copying text in web-page I added this code to my main style.css file and it works now

.mat-select-disabled .mat-select-trigger {
  user-select: all !important;
}