| 31440 | } |
| 31441 | |
| 31442 | function updateOptionElement(option, element) { |
| 31443 | option.element = element; |
| 31444 | element.disabled = option.disabled; |
| 31445 | // Support: IE 11 only, Edge 12-13 only |
| 31446 | // NOTE: The label must be set before the value, otherwise IE 11 & Edge create unresponsive |
| 31447 | // selects in certain circumstances when multiple selects are next to each other and display |
| 31448 | // the option list in listbox style, i.e. the select is [multiple], or specifies a [size]. |
| 31449 | // See https://github.com/angular/angular.js/issues/11314 for more info. |
| 31450 | // This is unfortunately untestable with unit / e2e tests |
| 31451 | if (option.label !== element.label) { |
| 31452 | element.label = option.label; |
| 31453 | element.textContent = option.label; |
| 31454 | } |
| 31455 | element.value = option.selectValue; |
| 31456 | } |
| 31457 | |
| 31458 | function updateOptions() { |
| 31459 | var previousValue = options && selectCtrl.readValue(); |