angularjs - IE 8 selecting n+1 index -


with ie 8, if have select list so...

            <select required ng-options="n n in monthnumbers" ng-model="month">             </select> 

...then angular adds blank first option in. when select option, ie 8 select option comes after it. if select month 1, select month 2.

if add initial element this...

        <select required ng-options="n n in monthnumbers" ng-model="month">            <option></option>         </select> 

... problem fixed. angular won't remove empty first element when other item selected behavior want.

is there decent way around this?

i added ng-disabled="true" manually added initial options , stops people selecting them in ie 8.

https://stackoverflow.com/a/2031748/221683


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -