Posted 14 March 2018, 9:41 pm EST
There seems to be a problem when binding an editable combobox via the ngModel directive.
HTML:
<wj-combo-box
[itemsSource]="['test1', 'test2', 'lorem', 'ipsum']"
[(ngModel)]="attr"
[wjModelProperty]="'text'"
[isEditable]="true">
</wj-combo-box>
<button (click)="attr = 'T'">Modify to 'T'</button>
<button (click)="attr = 'S'">Modify to 'S'</button>
<div>Attr value: {{attr}}</div>
Clicking the Modify to ‘S’ button will correctly modify the value in the input.
However, Modify to ‘T’ will set the value to test1. Clicking it a second time will modify the attribute value to T but will not update the input’s value.
It would seem the combobox’s autocomplete feature is intercepting the value and setting the first match found within the options list (thus why it shows test1 and not test2).
Angular v5.2.3
Wijmo v3.1.0
I haven’t been able to find a workaround so far so any help is appreciated.