@forgeroute/ui 0.5.30 → 0.5.31

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.
@@ -3281,8 +3281,6 @@ function focusInitial(dialog, body, doc) {
3281
3281
  if (!control) continue;
3282
3282
  if ((control.tagName === "BUTTON" ? !control.disabled && control.getClientRects().length > 0 : isUsableField(control)) && tryFocus(control)) return;
3283
3283
  }
3284
- const fields = Array.from(body.querySelectorAll("input, select, textarea"));
3285
- for (const f of fields) if (isUsableField(f) && tryFocus(f)) return;
3286
3284
  dialog.focus();
3287
3285
  }
3288
3286
  const FOCUSABLE_ANCESTOR = "button, a[href], [tabindex], [role=\"button\"], input:not([type=\"hidden\"]), select, textarea, summary";