| 27183 | |
| 27184 | |
| 27185 | function updateOptionElement(option, element) { |
| 27186 | option.element = element; |
| 27187 | element.disabled = option.disabled; |
| 27188 | // NOTE: The label must be set before the value, otherwise IE10/11/EDGE create unresponsive |
| 27189 | // selects in certain circumstances when multiple selects are next to each other and display |
| 27190 | // the option list in listbox style, i.e. the select is [multiple], or specifies a [size]. |
| 27191 | // See https://github.com/angular/angular.js/issues/11314 for more info. |
| 27192 | // This is unfortunately untestable with unit / e2e tests |
| 27193 | if (option.label !== element.label) { |
| 27194 | element.label = option.label; |
| 27195 | element.textContent = option.label; |
| 27196 | } |
| 27197 | if (option.value !== element.value) element.value = option.selectValue; |
| 27198 | } |
| 27199 | |
| 27200 | function addOrReuseElement(parent, current, type, templateElement) { |
| 27201 | var element; |