@planningcenter/topbar 12.7.0-rc.1 → 12.7.0-rc.2

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/topbar.js CHANGED
@@ -8265,6 +8265,7 @@ function buildToolIframeSrc(origin, basePath, route, params = {}) {
8265
8265
  const ToolIframe = /*#__PURE__*/React.forwardRef(function ToolIframe({
8266
8266
  basePath,
8267
8267
  currentPath,
8268
+ isVisible = true,
8268
8269
  onChangePath,
8269
8270
  onMessage,
8270
8271
  origin,
@@ -8338,6 +8339,7 @@ const ToolIframe = /*#__PURE__*/React.forwardRef(function ToolIframe({
8338
8339
  allow: "clipboard-write",
8339
8340
  style: {
8340
8341
  border: 0,
8342
+ display: isVisible ? undefined : "none",
8341
8343
  flex: 1,
8342
8344
  height: "100%",
8343
8345
  visibility: isReady ? undefined : "hidden",
@@ -8485,6 +8487,7 @@ function IframeTool({
8485
8487
  ref: iframeRef,
8486
8488
  basePath: config.basePath,
8487
8489
  currentPath: currentPath,
8490
+ isVisible: isOpen,
8488
8491
  onChangePath: onChangePath,
8489
8492
  onMessage: handleMessage,
8490
8493
  origin: origin,