components icon indicating copy to clipboard operation
components copied to clipboard

mat-select doesn't open. Only after other event. You can see the link in attachment.

Open nicbil opened this issue 8 years ago • 4 comments

Bug, feature request, or proposal:

Building of component on the fly. https://www.youtube.com/watch?v=hLCWMniUszg

What is the expected behavior?

What is the current behavior?

What are the steps to reproduce?

What is the use-case or motivation for changing an existing behavior?

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

"@angular/animations": "^4.4.6",
"@angular/cdk": "^5.0.2",
"@angular/common": "^4.3.6",
"@angular/compiler": "^4.3.6",
"@angular/core": "^4.3.6",
"@angular/forms": "^4.3.6",
"@angular/http": "^4.3.6",
"@angular/material": "^5.0.2",
"@angular/platform-browser": "^4.3.6",
"@angular/platform-browser-dynamic": "^4.3.6",

Is there anything else we should know?

@Component({ selector: 'fr-input-select', template: <mat-form-field> <mat-select #mySelect class="fr-input-select" [name]="md?.md?.name" [placeholder]="md?.md?.caption" [disabled]="disabled ? 'disabled': undefined" [required]="validationRules?.required?.rule" [(ngModel)]="selectedItem"> <mat-option class="fr-input-select__disabled gray-color" [value]=""> {{md?.md?.caption}} <i class="material-icons">&#xE5C7;</i> </mat-option> <mat-option class="fr-input-select__items" *ngFor="let item of md?.md?.items" [value]="item"> {{item}} </mat-option> </mat-select> </mat-form-field> <validation [validationResult]="validationResult"></validation>

nicbil avatar Jan 02 '18 21:01 nicbil

Closing this issue as it does not follow the issue template. Please file a new issue that follows the template, which gives the team the information needed to investigate.

jelbourn avatar Jan 02 '18 23:01 jelbourn

Just so you know you aren't alone I'm getting this error too. I have a select with static data but it won't open until I do something else

vmaggioli avatar Feb 07 '18 21:02 vmaggioli

I'm getting this too, and I can't seem to create a simple repeatable example. It's part of a very large application.

GaryChamberlain avatar Nov 30 '18 19:11 GaryChamberlain

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.