Hi,
When we open combobox with autocomplete as true and searchMode as startswithignorecase, then on chrome/ie browser, when we first select some non empty value, on change is fired. Then when we select first value which is empty , then also onchange is fired. After that when we select a value through by typing ‘A’ and select the first value which occurs, onchange is not getting fired..
below is the code.. will post the jsfiddle link soon..
var source = [
“”,
“Affogato”,
“Americano”,
“Bicerin”,
“Breve”,
“Café Bombón”,
“Café au lait”,
“Caffé Corretto”,
“Café Crema”,
“Caffé Latte”
];
// Create a jqxComboBox
$(“#jqxComboBox”).jqxComboBox({
source: source,
theme: ‘energyblue’,
width: ‘200px’,
height: ’25px’,
searchMode:’startswith’,
autoComplete:true
});
$(‘#jqxComboBox’).on(‘change’, function (event) {
alert(‘onChange’);
var args = event.args;
if (args) {
var index = args.index;
var item = args.item;
// get item’s label and value.
var label = item.label;
var value = item.value;
alert(“label: ” + label);
}
});