Dear Customer,
Greetings from Syncfusion Support.
We suspect that autocomplete control is not rendered properly which might throw the reported script error. Kindly refer the following sample link in which autocomplete works fine within editor template.
editorTemplate: '#EventEditorTemplate',
popupOpen: function (args) {
if (args.type === 'Editor') {
var statusElement = args.element.querySelector('#EventType');
if (!statusElement.classList.contains('e-autocomplete')) {
var autoCompleteObject = new ej.dropdowns.AutoComplete({
placeholder: 'Select a status', value: statusElement.value,
dataSource: ['New', 'Requested', 'Confirmed']
});
autoCompleteObject.appendTo(statusElement);
statusElement.setAttribute('name', 'EventType');
}
…
Please check the sample if you still face the problem revert us back with your code or else try to reproduce it in the above sample.
Regards,
Nevitha