How to fix IE select issue when dynamically changing options

前端 未结 13 517
南旧
南旧 2020-12-04 16:38

I have a set of selects that all have the same options. Then I run those options through a filter so that any options that are selected in a different select don\'t show up

13条回答
  •  情深已故
    2020-12-04 16:52

    I have the fix.

    We have to add and remove options list to trigger the rendering in IE8.

    http://kkurni.blogspot.com.au/2013/10/angularjs-ng-option-with-ie8.html


    /**
     * Fix for IE select menus getting stuck when their underlying list changes.
     * Original code: http://kkurni.blogspot.com.au/2013/10/angularjs-ng-option-with-ie8.html
     * 
     * Set the `ie-select-fix` attribute to the model expression that should trigger the list to re-render.
     * 
     * @example 
                            
        
    提交评论

提交回复
热议问题