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
I'm trying to make an application where items can be copied from the palette to the canvas. For now gridpack supports only moving between grids. I hoped that it would be enough to remove line 785 from v0.2.5 which removes the source of element, but it leads to undesired behaviors when I try to copy the element from palette into canvas two or more times.
Edit: I'm cloning widgets from a palette similar to your example. After dropping a widget in my gridstack container the next widget I grab from the palette triggers an "out" event although it has never entered the droppable area. This occurs in your example too. I'm a bit of a js noob so not exactly sure why these events are occuring. Would greatly appreciate any pointers, I'll post my solution once I figure it out.
@troolee I am hitting this same issue. I have tried to unbind all attributes and events to no avail can you provide a snippet to point me in the right direction.
This will be available in some form or another in v1.0.0. Please check my blog for more information. I'll post in the next few days about how this will work.
Activity
troolee commentedon Mar 10, 2016
Try to unbind all events handlers and data attributes of cloned item
notbear commentedon Mar 10, 2016
Thanks, I will try and let you know.
kertonandrew commentedon May 1, 2016
Did you find a solution to the problem?
Edit: I'm cloning widgets from a palette similar to your example. After dropping a widget in my gridstack container the next widget I grab from the palette triggers an "out" event although it has never entered the droppable area. This occurs in your example too. I'm a bit of a js noob so not exactly sure why these events are occuring. Would greatly appreciate any pointers, I'll post my solution once I figure it out.
notbear commentedon May 3, 2016
@attractivePoop I'm sorry, but not. My team resigned from gridstack due to changed requirements.
kertonandrew commentedon May 4, 2016
Thank you for the response.
mcelligottnick commentedon May 5, 2016
@troolee @attractivePoop I have solved this with a faux clone implmentation - https://gist.github.com/mcelligottnick/2d17a65615eb54b1c744050cb31ed028
redstubble commentedon Aug 16, 2016
@troolee I am hitting this same issue. I have tried to unbind all attributes and events to no avail can you provide a snippet to point me in the right direction.
radiolips commentedon Aug 17, 2016
We'll take a look at adding this ability into
v.0.2.7so that no hacky workaround will be requiredValentinFunk commentedon Oct 13, 2016
Also looking for this, has anyone found a workaround for this?
nelsonad commentedon Oct 19, 2016
Hey all, I ran into this issue too and posted my fix before I saw this issue.
#542
Edit! My fix addresses the issue @attractivePoop was seeing with "out" triggering before "over"
AurelDragut commentedon Nov 4, 2016
Guys, what do you think about reloading the source grid's content on drag start?
radiolips commentedon May 11, 2017
This will be available in some form or another in
v1.0.0. Please check my blog for more information. I'll post in the next few days about how this will work.radiolips commentedon May 15, 2017
This works on the
developbranch now. Please be sure to usedraggablesettinghelper: clone.tanobi92 commentedon May 26, 2017
Hi @radiolips , I tried to use setting helper: clone for draggable in example two.html, but failed. I downloaded new version 1.0.0. Help me! Thanks!
abayob commentedon May 26, 2017
@tanobi92 It works fine here! What is your code, how are you using it? What do you expect should happen?
tanobi92 commentedon May 26, 2017
Oh @radiolips , @abayob , I use file gridstack.all.js in folder "dist" when it runs, and I use gridstack.js when it fail.