MCPcopy Index your code
hub / github.com/angular-ui/ui-router / updateOptionElement

Function updateOptionElement

test/angular/1.6/angular.js:31442–31456  ·  view source on GitHub ↗
(option, element)

Source from the content-addressed store, hash-verified

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

Callers 1

addOptionElementFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected