message: fix: Assert `focus` method exists on the dialog disclosure element
diff: @@ -14,10 +14,12 @@ export function useDisclosureRef(
  // focus back to it when the dialog closes.
  const onFocus = (event: FocusEvent) => {
  const target = event.target as HTMLElement;
  + if ("focus" in target) {
  ref.current = target;
  if (options.unstable_disclosureRef) {
  options.unstable_disclosureRef.current = target;
  }
  + }
  };
  const document = getDocument(dialogRef.current);
  document.addEventListener("focus", onFocus, true);
  