We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cb4188d + 32dcb1f commit 1d1e1c6Copy full SHA for 1d1e1c6
specifyweb/frontend/js_src/lib/components/AppResources/EditorComponents.tsx
@@ -226,7 +226,11 @@ export function useCodeMirrorExtensions(
226
function handleLinted(results: RA<Diagnostic>, view: EditorView): void {
227
if (isFirstLint && results.length > 0) {
228
isFirstLint = false;
229
- setTimeout(() => openLintPanel(view), 0);
+ setTimeout(() => {
230
+ const currentFocus = document.activeElement as HTMLElement | null;
231
+ openLintPanel(view);
232
+ currentFocus?.focus();
233
+ }, 0);
234
}
235
setBlockers(
236
filterArray(
0 commit comments