components icon indicating copy to clipboard operation
components copied to clipboard

enterPredicate called every cdkDropList

Open ryanOhh opened this issue 7 years ago • 3 comments

enterPridicate is called on every cdkDropList on dragMove.

Reproduction

Use StackBlitz to reproduce your issue: https://stackblitz.com/fork/components-issue

working

  • cdk 7.1.0
  • https://stackblitz.com/edit/angular-dragdrop-cdk7?file=package.json

Not working

  • cdk 8.2.0
  • https://stackblitz.com/edit/angular-dragdrop-cdk8?file=package.json

Steps to reproduce:

  1. Drag and drop the box.
  2. Check log in console window

Expected Behavior

What behavior were you expecting to see?

  • I was expecting enterPredicate to only work on the drop target cdkDropList when dragging and dropping.

Actual Behavior

What behavior did you actually see?

  • Only the drop target cdkDropList does not work and enterPredicate is called on all cdkDropLists.
  • cdk 7.1.1 will work as intended, but 8.2.0 will not work as intended.

Environment

  • Angular: 8.2,0
  • CDK/Material: 8.2.0
  • Browser(s): chrome
  • Operating System (e.g. Windows, macOS, Ubuntu): ubuntu 19.04

ryanOhh avatar Oct 02 '19 07:10 ryanOhh

@crisbeto Hello! Could you tell me, when the issue's PR will be merged and new version of cdk will be published to npm? We want to release a new version of our app in a few days, and just don't know, should we wait for this bug fix? Thx a lot :)

gonlliuk avatar Oct 08 '19 09:10 gonlliuk

This isn't super high on our priority list so it probably won't make it into release within the next few days.

crisbeto avatar Oct 08 '19 18:10 crisbeto

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.