components icon indicating copy to clipboard operation
components copied to clipboard

Disabling sorting on Drag & Drop list doesn't work

Open LordMidi opened this issue 7 years ago • 7 comments

What is the expected behavior?

Drag & Drop list items can't be sorted when cdkDropListSortingDisabled set.

What is the current behavior?

Drag & Drop list items can be sorted when cdkDropListSortingDisabled set.

What are the steps to reproduce?

https://material.angular.io/cdk/drag-drop/overview#disabled-sorting

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Material 7.3.6

Is there anything else we should know?

LordMidi avatar Mar 27 '19 09:03 LordMidi

These changes haven't been released yet. It looks like our docs were generated against the latest code from master rather than the latest stable version. See https://github.com/angular/material2/issues/15632.

crisbeto avatar Mar 27 '19 22:03 crisbeto

Also, would the documentation be updated also? In https://material.angular.io/cdk/drag-drop/api, the description for cdkDragDisabled and cdkDropListSortingDisabled are the same, which makes it very confusing.

wc2582 avatar Mar 29 '19 20:03 wc2582

Thanks for the heads-up @wc2582, I've submitted a PR to correct it.

crisbeto avatar Mar 29 '19 22:03 crisbeto

@crisbeto this still does not work.

MadhuSudhanBhaskar avatar Apr 29 '19 08:04 MadhuSudhanBhaskar

bump...!

kflo avatar Jun 04 '19 15:06 kflo

bump...!

should be included in the last release of Angular Material v8. (haven't tried it yet)

LordMidi avatar Jun 04 '19 21:06 LordMidi

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.