Skip to content
Snippets Groups Projects
Unverified Commit 09d9905b authored by Renato Becker's avatar Renato Becker Committed by GitHub
Browse files

[FIX] Autocomplete component is not working property when searching channels...

[FIX] Autocomplete component is not working property when searching channels in the Livechat Departments form (#17970)
parent 8c91c422
No related branches found
No related tags found
No related merge requests found
......@@ -64,6 +64,7 @@
templateItem="popupList_item_channel"
modifier=offlineMessageChannelModifier
showLabel=true
selector=channelSelector
}}
</div>
<div class="input-line">
......
......@@ -106,6 +106,9 @@ Template.livechatDepartmentForm.helpers({
return `#${ f.length === 0 ? text : text.replace(new RegExp(filter.get()), (part) => `<strong>${ part }</strong>`) }`;
};
},
channelSelector() {
return (expression) => ({ name: expression });
},
});
Template.livechatDepartmentForm.events({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment