Closed westerncj closed 8 years ago
Is the onshow list different that the list you are passing into e-uib-typeahead?
No it's the same list. I was loading the list initially when the page loaded, but I'd rather load the list onshow
because I think it makes more sense.
I can close this now if you'd like. I found a workaround with my vm.formatField()
function by evaluating if the list is loaded yet. If the list isn't loaded then I'm setting it equal to the local model value in the dataset. Thanks for your help and let me know.
Yes, if you figured out a solution, go ahead and close the issue.
I'm trying to use the typeahead editable but I'm running into some problems when using
onshow="vm.loadList()"
ande-typeahead-input-formatter="vm.formatField($model)"
. Thee-typeahead-input-formatter
function is called before theonshow
function so my list is blank thus my input is blank when it becomes editable. Doesonshow
not complete before it formats the input?