@mgdis/core-ui-helpers 1.4.0 → 1.6.0

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.
@@ -4,7 +4,7 @@ var BUILD = {
4
4
  slotRelocation: true};
5
5
 
6
6
  /*
7
- Stencil Client Platform v4.45.1 | MIT Licensed | https://stenciljs.com
7
+ Stencil Client Platform v4.45.5 | MIT Licensed | https://stenciljs.com
8
8
  */
9
9
 
10
10
 
@@ -74,6 +74,7 @@ function getHostSlotNodes(childNodes, hostName, slotName) {
74
74
  if (typeof slotName !== "undefined") return slottedNodes;
75
75
  }
76
76
  slottedNodes = [...slottedNodes, ...getHostSlotNodes(internalCall(childNode, "childNodes"), hostName, slotName)];
77
+ if (typeof slotName !== "undefined" && slottedNodes.length) return slottedNodes;
77
78
  }
78
79
  return slottedNodes;
79
80
  }
@@ -237,7 +238,8 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
237
238
  const oldClasses = parseClassList(oldValue);
238
239
  let newClasses = parseClassList(newValue);
239
240
  {
240
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
241
+ let removedClasses = oldClasses.filter((c) => c && !newClasses.includes(c));
242
+ classList.remove(...removedClasses);
241
243
  classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
242
244
  }
243
245
  } else if (memberName === "style") {