diff --git a/packages/taler-merchant-webui/src/screens/BankMonitoringDialog.tsx b/packages/taler-merchant-webui/src/screens/BankMonitoringDialog.tsx index d8d6bf0af..4a6f5ab4d 100644 --- a/packages/taler-merchant-webui/src/screens/BankMonitoringDialog.tsx +++ b/packages/taler-merchant-webui/src/screens/BankMonitoringDialog.tsx @@ -134,6 +134,13 @@ function BankMonitoringForm({ } = useFormFeedback(); const fieldClass = "mt-1 w-full rounded-md border border-gray-300 px-3 py-2 text-sm"; + // The dialog opened on its close button while the settings loaded; now that + // they are here, start on the first setting: the history URL when + // monitoring is on, the switch that turns it on otherwise. + const firstField = useRef(null); + useEffect(() => { + firstField.current?.focus(); + }, []); return (