-
Notifications
You must be signed in to change notification settings - Fork 3.4k
select: ng-selected on a md-option is not working on page load #11914
Description
Bug, enhancement request, or proposal
Bug
Working ng-selected with AngularJs Material 1.1.21
https://codepen.io/patrikx3/pen/mdeQEmY
Not working ng-selected with AngularJs Material 1.1.22
https://codepen.io/patrikx3/pen/QWjJEaK
Demo and steps to reproduce the issue
This blank StackBlitz demo can be used to create a reproduction that demonstrates your issue.
Demo URL (required)*: Working ng-selected with AngularJs Material 1.1.21 https://codepen.io/patrikx3/pen/mdeQEmY vs Not working ng-selected with AngularJs Material 1.1.22 https://codepen.io/patrikx3/pen/QWjJEaK
Detailed Reproduction Steps
Run https://codepen.io/patrikx3/pen/mdeQEmY and you can see, that AngularJs Material 1.1.21 select ng-selected is working properly.
Run the same exact same code but with AngularJs Material 1.1.22 version, it is not working.
Explain the expected behavior
Should work with ng-selected es it works in v1.1.21
Explain the current behavior
With v1.1.22, something changed and the ng-selected is not selecting the ng-model anymore as the url shows.
Discuss the use-case or motivation for changing the existing behavior
We have been using and updating AngularJs Material since like 1.0.0, but not we can't update anymore as it not working as it was.
List the affected versions of AngularJS, Material, OS, and browsers
- AngularJS: 1.7.9
- AngularJS Material: 1.1.21 vs 1.1.22
- OS: Linux
- Browsers: Chrome
Add anything else we should know
Stack Trace
No trace!

