| 32638 | } |
| 32639 | |
| 32640 | function updateOptionElement(option, element) { |
| 32641 | option.element = element; |
| 32642 | element.disabled = option.disabled; |
| 32643 | // Support: IE 11 only, Edge 12-13 only |
| 32644 | // NOTE: The label must be set before the value, otherwise IE 11 & Edge create unresponsive |
| 32645 | // selects in certain circumstances when multiple selects are next to each other and display |
| 32646 | // the option list in listbox style, i.e. the select is [multiple], or specifies a [size]. |
| 32647 | // See https://github.com/angular/angular.js/issues/11314 for more info. |
| 32648 | // This is unfortunately untestable with unit / e2e tests |
| 32649 | if (option.label !== element.label) { |
| 32650 | element.label = option.label; |
| 32651 | element.textContent = option.label; |
| 32652 | } |
| 32653 | element.value = option.selectValue; |
| 32654 | } |
| 32655 | |
| 32656 | function updateOptions() { |
| 32657 | var previousValue = options && selectCtrl.readValue(); |