Skip to content

Commit 306e07c

Browse files
crisbetojelbourn
authored andcommitted
fix(drag-drop): drop list ref sorting disabled by default (#16963)
It looks like something I overlooked when I first implemented the `sortingDisabled` flag. Currently it's set to `false` by default which means that sorting won't work unless users opt into it. Fixes #16961.
1 parent c881474 commit 306e07c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cdk/drag-drop/drop-list-ref.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export class DropListRef<T = any> {
9090
disabled: boolean = false;
9191

9292
/** Whether sorting items within the list is disabled. */
93-
sortingDisabled: boolean = true;
93+
sortingDisabled: boolean = false;
9494

9595
/** Locks the position of the draggable elements inside the container along the specified axis. */
9696
lockAxis: 'x' | 'y';

0 commit comments

Comments
 (0)