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.
1 parent f6aea3c commit 0bde506Copy full SHA for 0bde506
frontend/src/stimulus/controllers/dynamic/filter/filters-form.controller.ts
@@ -228,9 +228,12 @@ export default class FiltersFormController extends Controller {
228
const target = element.querySelector(selector) as HTMLElement;
229
230
if (target) {
231
- target.focus();
232
- // We have found and focused our element, abort the iteration.
233
- return true;
+ window.setTimeout(() => {
+ target.focus();
+
234
+ // We have found and focused our element, abort the iteration.
235
+ return true;
236
+ }, 250);
237
}
238
239
return false;
0 commit comments