Frontmatter
| id | 8045 |
| title | [Draggable] Leverage auto-stealing for DragProxyContainer moves |
| state | Closed |
| labels | airefactoring |
| assignees | tobiu |
| createdAt | Dec 7, 2025, 1:23 PM |
| updatedAt | Dec 7, 2025, 1:24 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8045 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Dec 7, 2025, 1:24 PM |
Refactor
DragZone.mjsto rely on the built-in "auto-stealing" behavior ofNeo.container.Base.Changes:
me.owner.remove(component, false)call. When theDragProxyContaineris initialized with the component in itsitemsarray, the framework automatically removes the component from its previous parent.me.dragProxy.remove(component, false)call. When the component is added/inserted back into the owner, the framework automatically handles the removal from the proxy.This change simplifies the code and aligns it with the framework's instance management best practices, ensuring better preservation of controller scopes during the move.