bug: select is not checking the option with checked on it
See original GitHub issueThe following test failed on snapshot: select/single-value
Relevant code:
<ion-item>
<ion-label stacked>Label 6</ion-label>
<ion-select [(ngModel)]="gender">
<ion-option value="f" checked="true">Female</ion-option>
<ion-option value="m">Male</ion-option>
</ion-select>
</ion-item>
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (2 by maintainers)
Top Results From Across the Web
bug: select is not checking the option with checked on it · Issue ...
I'm curious as to how this should behave. Let's say that the gender variable would be "m" in this situation. What should the...
Read more >Angular Material 9 : How to fix a bug in a mat-form-field inside ...
I want to filter some objects inside a mat-select, but once i hit the space key in the search box, the first element...
Read more >Check spelling and grammar in Office - Microsoft Support
Spell check documents manually or automatically as you type, or turn spell check off. Run grammar and spell checker manually to proof your...
Read more >Check spelling and grammar on Mac - Apple Support
Check spelling and grammar on Mac. In many macOS apps, spelling is checked while you type, and mistakes are automatically corrected.
Read more >Select | Angular Material
This error is thrown if you attempt to assign a value other than null , undefined , or an array to a <mat-select...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I did workaround.In constructor i have set ngModel value for which i thought of keeping default selected value.
This way default value is getting selected
what i did was after executing all the line of codes in the ionChange event i made [(ngModel)] value null… After that its working fine