@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.js CHANGED
@@ -9229,7 +9229,7 @@ const TreeItem = react.memo(function TreeItem2(props) {
9229
9229
  const handleClick = react.useCallback(event => {
9230
9230
  if (onClick) onClick(event);
9231
9231
  const target = event.target;
9232
- if (target instanceof HTMLElement && (target.getAttribute("data-ui") === "TreeItem__box" || target.closest('[data-ui="TreeItem__box"]'))) {
9232
+ if (target instanceof HTMLElement && (target.getAttribute("data-ui") === "TreeItem" || target.closest('[data-ui="TreeItem__box"]'))) {
9233
9233
  event.stopPropagation();
9234
9234
  setExpanded(itemKey, !expanded);
9235
9235
  setFocusedElement(rootRef.current);