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

Function updateOptionElement

lib/test/angular/1.6.7/angular.js:30881–30895  ·  view source on GitHub ↗
(option, element)

Source from the content-addressed store, hash-verified

30879 }
30880
30881 function updateOptionElement(option, element) {
30882 option.element = element;
30883 element.disabled = option.disabled;
30884 // Support: IE 11 only, Edge 12-13 only
30885 // NOTE: The label must be set before the value, otherwise IE 11 & Edge create unresponsive
30886 // selects in certain circumstances when multiple selects are next to each other and display
30887 // the option list in listbox style, i.e. the select is [multiple], or specifies a [size].
30888 // See https://github.com/angular/angular.js/issues/11314 for more info.
30889 // This is unfortunately untestable with unit / e2e tests
30890 if (option.label !== element.label) {
30891 element.label = option.label;
30892 element.textContent = option.label;
30893 }
30894 element.value = option.selectValue;
30895 }
30896
30897 function updateOptions() {
30898 var previousValue = options && selectCtrl.readValue();

Callers 1

addOptionElementFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected