message: fix: Fix `Dialog` closing when clicking inside it and dragging outside
  Closes
diff: @@ -8,15 +8,38 @@ export function useHideOnClickOutside(
  nestedDialogs: Array<React.RefObject<HTMLElement>>,
  options: DialogOptions
  ) {
  - const useEvent = (eventType: string) =>
  + const mouseDownRef = React.useRef<EventTarget | null>();
  +
  + useEventListenerOutside(
  + dialogRef,
  + disclosuresRef,
  + nestedDialogs,
  + "mousedown",
  + event => {
  + mouseDownRef.current = event.target;
  + },
  + options.visible && options.hideOnClickOutside
  + );
  +
  + useEventListenerOutside(
  + dialogRef,
  + disclosuresRef,
  + nestedDialogs,
  + "click",
  + event => {
  + if (mouseDownRef.current === event.target && options.hide) {
  + options.hide();
  + }
  + },
  + options.visible && options.hideOnClickOutside
  + );
  +
  useEventListenerOutside(
  dialogRef,
  disclosuresRef,
  nestedDialogs,
  - eventType,
  + "focus",
  options.hide,
  options.visible && options.hideOnClickOutside
  );
  - useEvent("click");
  - useEvent("focus");
  }
  