MCPcopy Create free account
hub / github.com/angular-ui/ui-router / updateOptionElement

Function updateOptionElement

test/angular/1.7/angular.js:32640–32654  ·  view source on GitHub ↗
(option, element)

Source from the content-addressed store, hash-verified

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();

Callers 1

addOptionElementFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected