@salesforcedevs/dx-components 1.3.37-alpha10 → 1.3.37-alpha12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -176,8 +176,7 @@ export default class SearchResults extends LightningElement {
|
|
|
176
176
|
|
|
177
177
|
Coveo.TemplateHelpers.registerTemplateHelper(
|
|
178
178
|
"badge",
|
|
179
|
-
(value: string) =>
|
|
180
|
-
`<div class="type-badge-shell ${value}"></div>`
|
|
179
|
+
(value: string) => `<div class="type-badge-shell ${value}"></div>`
|
|
181
180
|
);
|
|
182
181
|
|
|
183
182
|
Coveo.init(this.root);
|
|
@@ -185,8 +184,10 @@ export default class SearchResults extends LightningElement {
|
|
|
185
184
|
|
|
186
185
|
appendTypeBadges = () => {
|
|
187
186
|
this.template.querySelectorAll(".type-badge-shell")?.forEach((el) => {
|
|
188
|
-
el.classList.remove("type-badge-shell");
|
|
189
187
|
el.classList.forEach((cl) => {
|
|
188
|
+
if (el.firstChild) {
|
|
189
|
+
el.removeChild(el.firstChild);
|
|
190
|
+
}
|
|
190
191
|
const component = createElement("dx-type-badge", {
|
|
191
192
|
is: LightningElement
|
|
192
193
|
});
|