made-refine 0.2.9 → 0.2.10

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/dist/utils.mjs CHANGED
@@ -887,7 +887,7 @@ function colorToTailwind(property, colorValue) {
887
887
  }
888
888
  function getElementInfo(element) {
889
889
  const computed = window.getComputedStyle(element);
890
- const parentElement = element.parentElement;
890
+ const parentElement = element === document.body ? null : element.parentElement;
891
891
  const isFlexContainer2 = computed.display === "flex" || computed.display === "inline-flex";
892
892
  let isFlexItem = false;
893
893
  if (parentElement) {