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
// Use an arrow function so that `this` is bound to the Vue instance. Alternatively, use a custom Vue directive on the `.grid-stack` container element: https://vuejs.org/v2/guide/custom-directive.html
83
82
this.grid.on("dragstop",(event,element)=>{
84
-
constnode=event.target.gridstackNode;
83
+
constnode=element.gridstackNode;
85
84
// `this` will only access your Vue instance if you used an arrow function, otherwise `this` binds to window scope. see https://hacks.mozilla.org/2015/06/es6-in-depth-arrow-functions/
86
-
this.info=`You just dragged node #${node.id} to x${node.x} y${node.y} – good job!`;
85
+
this.info=`you just dragged node #${node.id} to ${node.x},${node.y} – good job!`;
0 commit comments