bug(cdkDropList/mat-tab-nav-bar): Wrong container for cdkPlaceHolder/cdkDrag after drag/hover from other list #29140
Labels
area: cdk/drag-drop
feature
This issue represents a new feature or feature request rather than a bug or bug fix
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Is this a regression?
The previous version in which this bug was not present was
No response
Description
The issue occurs when a button from the second nav-bar is dragged very slowly into the first one from the right side.
This happens because the
mat-tab-nav-bar
is not a single<div>
, but consists of several layers:When the dragged button enters another nav-bar, this function is called: single-axis-sort-strategy.ts#L175. Since it does not find
newPositionReference
, the basecdkDropList
element is used as the parent of the placeholder: single-axis-sort-strategy.ts#L213.Reproduction
Video: YouTube
StackBlitz: Example
Expected Behavior
Dragged button lands along with others
Actual Behavior
Dragged button lands in wrong container
Environment
The text was updated successfully, but these errors were encountered: