When using viewConfig on combobox to customise dropdown template I'm having issues with instead of overwriting existing template content on each dropdown refresh I get duplicated template (whenever I type in any text in combobox).

This is a sample config I use:

listConfig: {

tpl: '<div><div class="AddNewitem" onclick="NewUnit();"><a>Add new Unit</a></div><ul><tpl for="."><li class="x-boundlist-item">{Unit}</li></tpl></ul></div>',

itemSelector: 'li.x-boundlist-item'

}

This part gets duplicated in dropdown on every dropdown refresh:

<div><div class="AddNewitem" onclick="NewUnit();"><a>Add new Unit</a></div><ul></ul></div>


Please advice if there is a new way to achieve this sort of customisation with 5.0 or this is just a bug?