@wix/form-public 0.481.0 → 0.482.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.
package/dist/index.cjs CHANGED
@@ -55726,12 +55726,13 @@ var FormViewerProvider = ({ i18n, bi: bi2, biFormFillSessionId, form, isMobile:
55726
55726
  translationNamespace
55727
55727
  ]);
55728
55728
  const formBi = useFormBi(form, bi2, biFormFillSessionId);
55729
- const defaultPortalContainer = React171.useMemo(() => compId ? ({ children: portalChildren }) => (
55730
- // ensure stylesheet (.compId { ... }) is applied to portal
55731
- /* @__PURE__ */ React171__default.default.createElement("div", {
55732
- className: `${compId} ${compId}_ooi`
55733
- }, portalChildren)
55734
- ) : void 0, [
55729
+ const defaultPortalContainer = React171.useMemo(() => compId ? ({ children: portalChildren }) => /* @__PURE__ */ React171__default.default.createElement("div", {
55730
+ className: `${compId} ${compId}_ooi`,
55731
+ // no box = keeps the widget's CSS vars without inheriting its height and margins
55732
+ style: {
55733
+ display: "contents"
55734
+ }
55735
+ }, portalChildren) : void 0, [
55735
55736
  compId
55736
55737
  ]);
55737
55738
  const resolvedPortalContainer = PortalContainer ?? defaultPortalContainer;