@ai-matrx/canvas 0.5.1 → 0.5.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/react.js CHANGED
@@ -2844,6 +2844,8 @@ function TabStrip({ paneId, itemIds, activeItemId }) {
2844
2844
  reveal();
2845
2845
  const observer = typeof ResizeObserver === "undefined" ? null : new ResizeObserver(reveal);
2846
2846
  observer?.observe(el);
2847
+ const activeTab = el.querySelector('[role="tab"][aria-selected="true"]');
2848
+ if (activeTab) observer?.observe(activeTab);
2847
2849
  return () => observer?.disconnect();
2848
2850
  }, [activeItemId, itemIds.length]);
2849
2851
  return /* @__PURE__ */ jsx7(