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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Merge branch 'dev' into code-maintenance/61923-generalise-scrollintoview-controller
Mir Bhatiaa5c8f019208e
diff --cc frontend/src/stimulus/controllers/dynamic/meeting-agenda-item-form.controller.tsindex 6ee6a4b1fa8,b17463a70da..b00f3222902--- a/frontend/src/stimulus/controllers/dynamic/meeting-agenda-item-form.controller.ts+++ b/frontend/src/stimulus/controllers/dynamic/meeting-agenda-item-form.controller.ts@@@ -51,7 -51,8 +51,7 @@@ export default class extends ControllefocusInput():void {const titleInput = this.element.querySelector('input[name="meeting_agenda_item[title]"]');- if (titleInput) {- this.element.scrollIntoView({ block: 'center' });+ if (titleInput && this.autofocusValue) {(titleInput as HTMLInputElement).focus();this.setCursorAtEnd(titleInput as HTMLInputElement);}diff --cc frontend/src/stimulus/setup.tsindex 34e7b06eddb,1fd221488df..fe23535486b--- a/frontend/src/stimulus/setup.ts+++ b/frontend/src/stimulus/setup.ts@@@ -18,7 -18,7 +18,8 @@@ import PreviewController from './controimport KeepScrollPositionController from './controllers/keep-scroll-position.controller';import PatternInputController from './controllers/pattern-input.controller';import HoverCardTriggerController from './controllers/hover-card-trigger.controller';+import ScrollIntoViewController from './controllers/scroll-into-view.controller';+ import CkeditorFocusController from './controllers/ckeditor-focus.controller';declare global {interface Window {@@@ -52,4 -52,4 +53,5 @@@ instance.register('projects-zen-mode',instance.register('work-packages--date-picker--preview', PreviewController);instance.register('keep-scroll-position', KeepScrollPositionController);instance.register('pattern-input', PatternInputController);+instance.register('scroll-into-view', ScrollIntoViewController);+ instance.register('ckeditor-focus', CkeditorFocusController);diff --cc modules/meeting/app/components/meeting_agenda_items/form_component.rbindex bc1e46fdada,5bffbbd5300..8f3dd542133--- a/modules/meeting/app/components/meeting_agenda_items/form_component.rb+++ b/modules/meeting/app/components/meeting_agenda_items/form_component.rb@@@ -59,9 -59,12 +59,12 @@@ module MeetingAgendaItemdef wrapper_data_attributes{- controller: "meeting-agenda-item-form scroll-into-view",- controller: "meeting-agenda-item-form ckeditor-focus",++ controller: "meeting-agenda-item-form ckeditor-focus scroll-into-view","application-target": "dynamic",- "meeting-agenda-item-form-cancel-url-value": @cancel_path+ "meeting-agenda-item-form-cancel-url-value": @cancel_path,+ "meeting-agenda-item-form-autofocus-value": @autofocus,+ "ckeditor-focus-target": "editor",+ "ckeditor-focus-autofocus-value": !@autofocus}enddiff --cc modules/meeting/app/components/meeting_agenda_items/outcomes/form_component.html.erbindex 6c738476ba6,edcf2061af2..2222c351bdf--- a/modules/meeting/app/components/meeting_agenda_items/outcomes/form_component.html.erb+++ b/modules/meeting/app/components/meeting_agenda_items/outcomes/form_component.html.erb@@@ -5,9 -5,9 +5,10 @@@method: @method,url: @submit_path) do |f|- grid_layout("op-meeting-outcome-form", tag: :div) do |grid|- grid.with_area(- :notes,+++ flex_layout(tag: :div) do |flex|+ flex.with_row(+ mb: 2,data: wrapper_data_attributes) dorender(MeetingAgendaItem::Outcome::Notes.new(f))diff --cc modules/meeting/app/components/meeting_agenda_items/outcomes/form_component.rbindex 86944f5f249,a3b978491a5..5bda0ff70ea--- a/modules/meeting/app/components/meeting_agenda_items/outcomes/form_component.rb+++ b/modules/meeting/app/components/meeting_agenda_items/outcomes/form_component.rb@@@ -51,8 -51,10 +51,10 @@@ module MeetingAgendaItems::Outcomedef wrapper_data_attributes{- controller: "ckeditor-focus",++ controller: "ckeditor-focus scroll-into-view","test-selector": "meeting-outcome-input",- controller: "scroll-into-view"+ "ckeditor-focus-target": "editor",+ "ckeditor-focus-autofocus-value": "true"}endend