IE11 - Need to click the dropdown 3 times for it to show options (using select and ng-model)
I reported this issue earlier and was given a suggestion but that did not work. So I am just posting this again to see if anyone else has a suggestion. I have just started looking into AngularJS and new to it.
I am not sure if anyone else has seen this issue in IE 11 (11.0.9600.17031 to be precise). I could not reproduce this in Chrome. I have searched for solutions but haven't found any so far. Here is a fiddle that depicts the same issue I am having (http://jsfiddle.net/CodeByChoice/Gu88c/2/). I have a bunch of options that I need to bind to this dropdown list and I get that data from the server using $http.get(). All is well until I click on the dropdown to actually select one of the options. The first time I click it, it goes solid blue as if it doesn't have any options, on the second click it seems like it loads the options. And on the third and final click it finally expands the list to show me the options. I could not re-produce the issue in Chrome so this could be a IE issue. Angular Version - 1.2.18 jQuery Version - 1.9.1
I was told that I should not display the select until options are available, in which case you should use ng-show or ng-if to hide the select. And I did it here, http://jsfiddle.net/CodeByChoice/Gu88c/4/, but that hasn't helped either. Make sure you open it in IE11 though, it works in Chrome.
For clarification, the problem only appears when you click on the select while it is still empty. This definitely looks like an Internet Explorer bug (or a case of vague specification); however the workaround, i.e. not showing the select until the data is there works, but you must set IsDataLoaded to true when the data is resolved, you did it initially. See http://jsfiddle.net/LY4T8/ Another option is to use ng-disabled="IsDataLoaded"
Thank you very much for pointing that out Narretz...appreciate your help.