x-ui-design 0.8.31 → 0.8.32

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/index.esm.js CHANGED
@@ -5598,7 +5598,7 @@ const Popover = ({
5598
5598
  onMouseLeave: handleOnMouseLeave
5599
5599
  }, [trigger]);
5600
5600
  return /*#__PURE__*/React.createElement(React.Fragment, null, Children.map(children, (child, index) => {
5601
- if (! /*#__PURE__*/isValidElement(child)) {
5601
+ if (! /*#__PURE__*/isValidElement(child) || typeof child.type === 'string' && ['svg'].includes(child.type)) {
5602
5602
  child = /*#__PURE__*/React.createElement("div", null, child);
5603
5603
  }
5604
5604
  return /*#__PURE__*/cloneElement(child, {