var autoObj = new ej.dropdowns.AutoComplete({
dataSource: members,
fields: { value: 'text' },
floatLabelType: 'Always', placeholder: 'Team Members',
created: function(){
autoObj.focusIn();
}
});
autoObj.appendTo(inputEle);
|
Hi S_Line,
Thanks for your update.
We have checked your scenario and the cause of the problem
is autocomplete component render before popup open event, so dialog not opened
and element not append to DOM. In popupOpen
event argument returned popup element and take the popup instance and bind the open event,
call the autocomplete focusIn
method. Please find code snippet and sample for your reference.
args.element.ej2_instances[0].open = function() { autoObj.focusIn(); } |
Sample Link: https://stackblitz.com/edit/eoh4qc-qty2if?file=index.js
Regards,
Gopi G.