angular2-draggable icon indicating copy to clipboard operation
angular2-draggable copied to clipboard

Model elements getting disable while using ngDraggable

Open saxenadeepakkumar opened this issue 7 years ago • 3 comments

Hi Team,

I am using V1.1.0 for angular2. While using with ngDraggable with model, then it is disabling model component like textbox, dropdown. Means, i am able to see textbox but not able to enter any text in textbox. Is there any other configuration required. I saw that more then V1.1.0 is not supported for angular2.

Please help.

Thanks in advance....

saxenadeepakkumar avatar Jul 27 '18 13:07 saxenadeepakkumar

@saxenadeepakkumar You can set [preventDefaultEvent] = "false"

xieziyu avatar Jul 30 '18 03:07 xieziyu

Thanks @xieziyu. It's really awesome.

I am looking one more solution like if we are dragging div then sometime it's going outside window boundary. Is there any way to set the moving boundary for div?

Thanks in advance.

saxenadeepakkumar avatar Jul 30 '18 18:07 saxenadeepakkumar

@saxenadeepakkumar My pleasure. You can set [bounds] to the boundary element and [inBounds] to true. You can refer to the demo for detail: https://xieziyu.github.io/angular2-draggable/#/draggable/usage/boundary

xieziyu avatar Jul 31 '18 02:07 xieziyu