@sanity/ui 1.7.1 → 1.7.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/index.esm.js CHANGED
@@ -9216,7 +9216,7 @@ const TreeItem = memo(function TreeItem2(props) {
9216
9216
  const handleClick = useCallback(event => {
9217
9217
  if (onClick) onClick(event);
9218
9218
  const target = event.target;
9219
- if (target instanceof HTMLElement && (target.getAttribute("data-ui") === "TreeItem__box" || target.closest('[data-ui="TreeItem__box"]'))) {
9219
+ if (target instanceof HTMLElement && (target.getAttribute("data-ui") === "TreeItem" || target.closest('[data-ui="TreeItem__box"]'))) {
9220
9220
  event.stopPropagation();
9221
9221
  setExpanded(itemKey, !expanded);
9222
9222
  setFocusedElement(rootRef.current);