[75384] Section cannot be dragged and dropped outside of current view#23460
Merged
bsatarnejad merged 1 commit intoJun 1, 2026
Conversation
myabc
approved these changes
Jun 1, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Enables dragging/dropping type form configuration sections beyond the currently visible area by providing an explicit scroll container for the Stimulus drag-and-drop controller and making the active list area scrollable.
Changes:
- Wrapes the main (active) list content in a dedicated scroll container element and exposes it as a
scrollContainerStimulus target. - Adds styling for the new active list container to allow scrolling within the main area.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| frontend/src/global_styles/content/_types_form_configuration.sass | Adds styles for the new active-list scroll container. |
| app/components/work_package_types/form_configuration_component.html.erb | Introduces a scrollable wrapper div around the main content and registers it as the drag-and-drop scroll container target. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ticket
https://community.openproject.org/wp/75384
What are you trying to accomplish?
Sections can now be dragged and dropped outside the visible area. The page automatically scrolls when dragging near the edges by registering the content wrapper as a scroll container for the drag-and-drop controller.