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

Function updateOptionElement

lib/test/angular/1.7.0/angular.js:31665–31679  ·  view source on GitHub ↗
(option, element)

Source from the content-addressed store, hash-verified

31663 }
31664
31665 function updateOptionElement(option, element) {
31666 option.element = element;
31667 element.disabled = option.disabled;
31668 // Support: IE 11 only, Edge 12-13 only
31669 // NOTE: The label must be set before the value, otherwise IE 11 & Edge create unresponsive
31670 // selects in certain circumstances when multiple selects are next to each other and display
31671 // the option list in listbox style, i.e. the select is [multiple], or specifies a [size].
31672 // See https://github.com/angular/angular.js/issues/11314 for more info.
31673 // This is unfortunately untestable with unit / e2e tests
31674 if (option.label !== element.label) {
31675 element.label = option.label;
31676 element.textContent = option.label;
31677 }
31678 element.value = option.selectValue;
31679 }
31680
31681 function updateOptions() {
31682 var previousValue = options && selectCtrl.readValue();

Callers 1

addOptionElementFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected