| 29747 | |
| 29748 | |
| 29749 | function updateOptionElement(option, element) { |
| 29750 | option.element = element; |
| 29751 | element.disabled = option.disabled; |
| 29752 | // NOTE: The label must be set before the value, otherwise IE10/11/EDGE create unresponsive |
| 29753 | // selects in certain circumstances when multiple selects are next to each other and display |
| 29754 | // the option list in listbox style, i.e. the select is [multiple], or specifies a [size]. |
| 29755 | // See https://github.com/angular/angular.js/issues/11314 for more info. |
| 29756 | // This is unfortunately untestable with unit / e2e tests |
| 29757 | if (option.label !== element.label) { |
| 29758 | element.label = option.label; |
| 29759 | element.textContent = option.label; |
| 29760 | } |
| 29761 | element.value = option.selectValue; |
| 29762 | } |
| 29763 | |
| 29764 | function updateOptions() { |
| 29765 | var previousValue = options && selectCtrl.readValue(); |