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
{{ message }}
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.
Same problem here, when ng-disabled is added (in my case there is no ng-if), the dropdown menu opens twice.
Although, if the disabled attribute is present, md-select is styled but options can still be selected.
The issue occurs when md-select is initially not disabled and ngDisabled is used, the $observe listener fires twice causing the click and key events listeners to be registered twice.
The solution (or hack?) is to track md-select disabled state and only register / de-register events if the disabled state has changed.
When you have a
md-select
that combinesng-if
andng-disabled
, it's opened twice when you click on it.The same issue is observed when using
md-select
with onlyng-disabled
and a parent element withng-if
.Example plunkr (just click in one of the selects):
http://plnkr.co/edit/IMPaUh9KhyUxAxvTleAO?p=preview
Demo gif:
![](https://camo.githubusercontent.com/773d072d78b30edce9e352b524c1507471aacabe6fd29950de8a32943da88e4a/687474703a2f2f692e696d6775722e636f6d2f4a586e38794b4c2e676966)
The text was updated successfully, but these errors were encountered: