0

I have an HTML element with a mouseenter listener that shows a hidden cdk drop list on mouseenter (with *ngIf). When on drag start of a cdk drag item, I'm getting the warning CdkDropList could not find connected drop list with id "xxxx".

This is most likely because the hidden drop list doesn't exist in the DOM yet. I would like to know if there's a way to dynamically look for droplists in the DOM, so when dragging over my element, it picks up the hidden droplist and allows me to drag and drop there.

1
  • 1
    Try use [style.display]="condition?'none':null instead a *ngIf. NOTE: It's only an idea, without important part of your code it's impossible help you more
    – Eliseo
    Commented May 4, 2022 at 6:37

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.