I have to be missing something very simple but after an hour of fighting with it, I think I need to ask for help. I'm trying to follow the simple example given for setting a cdkDragBoundary on the Angular site. cdkDrag works as expected but ignores the boundary. I've checked package.json to make sure that all the dependencies are up to date, and I believe they are. Can anyone let me know what I am missing?
Asked
Active
Viewed 1,372 times
0
-
Can you give us the url to edit your stackblitz please ? An easy thing to miss is the dot before the boundary : `cdkDragBoundary=".example-boundary"` – Quentin Grisel May 25 '20 at 16:38
1 Answers
1
you miss a dot :) cdkDragBoundary=".play-area"
instead of cdkDragBoundary="play-area"

Marcel Hoekstra
- 1,334
- 12
- 19
-
It was the dot. I am kicking myself.... I'll make sure on any future posts I share the edit URL. Thank you for your help! – Kristopher Bishop May 26 '20 at 13:53