Skip to content

enterPredicate called every cdkDropList #17266

Closed
hrueger/AGLight
#112
@ryanOhh

Description

@ryanOhh

enterPridicate is called on every cdkDropList on dragMove.

Reproduction

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

working

Not working

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

Metadata

Metadata

Assignees

Labels

P4A relatively minor issue that is not relevant to core functions

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions