@sanity/ui 2.8.4 → 2.8.5
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 +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/core/components/dialog/__workshop__/nested.tsx +12 -2
- package/src/core/hooks/useClickOutsideEvent.ts +3 -1
package/dist/index.js
CHANGED
|
@@ -188,7 +188,7 @@ function useClickOutsideEvent(listener, elementsArg = () => EMPTY_ARRAY, boundar
|
|
|
188
188
|
return document.addEventListener("mousedown", handleEvent), () => {
|
|
189
189
|
document.removeEventListener("mousedown", handleEvent);
|
|
190
190
|
};
|
|
191
|
-
}, [hasListener, onEvent]);
|
|
191
|
+
}, [hasListener, onEvent]), react.useDebugValue(listener ? "MouseDown On" : "MouseDown Off");
|
|
192
192
|
}
|
|
193
193
|
function useCustomValidity(ref, customValidity) {
|
|
194
194
|
react.useEffect(() => {
|