Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

removed not needed timeout as suggested by @oliverguenther

Jonas Jabari1edc07ddc8fe
diff --git a/frontend/src/stimulus/controllers/dynamic/meeting-section-form.controller.ts b/frontend/src/stimulus/controllers/dynamic/meeting-section-form.controller.ts
index 285b73b18d1..f1e9545e9a8 100644
--- a/frontend/src/stimulus/controllers/dynamic/meeting-section-form.controller.ts
+++ b/frontend/src/stimulus/controllers/dynamic/meeting-section-form.controller.ts
@@ -45,11 +45,9 @@ export default class extends Controller {
focusInput():void {
const titleInput = this.element.querySelector('input[name="meeting_section[title]"]');
- setTimeout(() => {
- this.element.scrollIntoView({ block: 'center' });
- (titleInput as HTMLInputElement).focus();
- this.setCursorAtEnd(titleInput as HTMLInputElement);
- }, 100);
+ this.element.scrollIntoView({ block: 'center' });
+ (titleInput as HTMLInputElement).focus();
+ this.setCursorAtEnd(titleInput as HTMLInputElement);
}
async cancel() {