Azure: Fixed dropdowns not showing current value (#22914)

(cherry picked from commit d16211b782)
This commit is contained in:
Torkel Ödegaard
2020-03-20 14:13:09 +01:00
committed by Leonard Gram
parent c08b901664
commit e95667fffb
@@ -1,6 +1,7 @@
import _ from 'lodash';
import coreModule from '../../core_module';
import { ISCEService } from 'angular';
import { promiseToDigest } from 'app/core/utils/promiseToDigest';
function typeaheadMatcher(this: any, item: string) {
let str = this.query;
@@ -101,8 +102,7 @@ export class FormDropdownCtrl {
}
getOptionsInternal(query: string) {
const result = this.getOptions({ $query: query });
return Promise.resolve(result);
return promiseToDigest(this.$scope)(Promise.resolve(this.getOptions({ $query: query })));
}
isPromiseLike(obj: any) {