Commit e95667ff by Torkel Ödegaard Committed by Leonard Gram

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

(cherry picked from commit d16211b7)
parent c08b9016
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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment