You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scroll down to "Alternate drag root element" section.
Click on "Open a draggable dialog" button.
Drag the modal off screen, and click anywhere to close it.
Click on "Open a draggable dialog" button again.
What is the use-case or motivation for changing an existing behavior?
I am using cdkDrag for draggable modals. Although I have no need for the "drop" feature of cdkDrag it would be very helpful to be able to define containers that a draggable item could be constrained to.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 6.0.3,
CDK 7.0.0,
Typescript 2.7.2
Is there anything else we should know?
The text was updated successfully, but these errors were encountered:
Bug, feature request, or proposal:
Add functionality to define a parent container for a draggable element to be constrained to to prevent dragging off bounds.
What is the expected behavior?
Be able to define a parent container with a selector , ( e.g cdkDragParent ) so that a draggable element can not be dragged outside the container.
What is the current behavior?
You are able to drag items off screen leaving you no way to bring it back into view without refreshing the page.
What are the steps to reproduce?
Issue is visible in the demo section for Material:
Visit: https://material.angular.io/cdk/drag-drop/overview
Scroll down to "Alternate drag root element" section.
Click on "Open a draggable dialog" button.
Drag the modal off screen, and click anywhere to close it.
Click on "Open a draggable dialog" button again.
What is the use-case or motivation for changing an existing behavior?
I am using cdkDrag for draggable modals. Although I have no need for the "drop" feature of cdkDrag it would be very helpful to be able to define containers that a draggable item could be constrained to.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 6.0.3,
CDK 7.0.0,
Typescript 2.7.2
Is there anything else we should know?
The text was updated successfully, but these errors were encountered: