@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.
@@ -10,7 +10,7 @@
10
10
  slotRelocation: true};
11
11
 
12
12
  /*
13
- Stencil Client Platform v4.45.1 | MIT Licensed | https://stenciljs.com
13
+ Stencil Client Platform v4.45.5 | MIT Licensed | https://stenciljs.com
14
14
  */
15
15
 
16
16
 
@@ -80,6 +80,7 @@
80
80
  if (typeof slotName !== "undefined") return slottedNodes;
81
81
  }
82
82
  slottedNodes = [...slottedNodes, ...getHostSlotNodes(internalCall(childNode, "childNodes"), hostName, slotName)];
83
+ if (typeof slotName !== "undefined" && slottedNodes.length) return slottedNodes;
83
84
  }
84
85
  return slottedNodes;
85
86
  }
@@ -243,7 +244,8 @@
243
244
  const oldClasses = parseClassList(oldValue);
244
245
  let newClasses = parseClassList(newValue);
245
246
  {
246
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
247
+ let removedClasses = oldClasses.filter((c) => c && !newClasses.includes(c));
248
+ classList.remove(...removedClasses);
247
249
  classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
248
250
  }
249
251
  } else if (memberName === "style") {