@sanity/ui 1.7.2 → 1.7.3

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.js CHANGED
@@ -7917,9 +7917,9 @@ function useMenuController(props) {
7917
7917
  setActiveIndex(currentIndex);
7918
7918
  }, [setActiveIndex]);
7919
7919
  const handleItemMouseLeave = react.useCallback(() => {
7920
+ setActiveIndex(-2);
7920
7921
  rootElement == null ? void 0 : rootElement.focus();
7921
- setActiveIndex(-1);
7922
- }, [rootElement, setActiveIndex]);
7922
+ }, [setActiveIndex, rootElement]);
7923
7923
  react.useEffect(() => {
7924
7924
  if (!mounted) return;
7925
7925
  const rafId = window.requestAnimationFrame(() => {