[Question Not Issue] how to make a div not draggable based on an input inside it
ISLEMNEDDAR opened this issue · comments
NEDDAR ISLEM commented
hello
nice project I used to create a sticky note section in my app
but I had a problem the note is draggable and I have a text area inside this note
so I want to make the div (note) not draggable when the text area is shown
any idea ?
NEDDAR ISLEM commented
well I was tired yesterday but the solution that I did is :
put the interact(target) in a variable
if(editable){ interactTarget = interact.draggable(false) }else{ interractTarget= interact.draggable({}) }