Closed JoseGoncalves closed 9 years ago
This has something to do with how SelectionView disables the "dragging" effect on images in Firefox (https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Drag_operations). It sets the draggable
attribute to false
. Somehow, jQuery UI cannot deal with this. This looks more like a bug in jQuery UI than in Rappid. Let us have a closer look on what we can do with this....
As a temporary workaround in my app, I removed the draggable attribute in the call that triggers the error, and it all seems to work fine for me.
Thanks Jose! I was having the same issue, and got stuck thinking it was an incompatibility with the version of jQuery embedded in the joint.js file. I commented out the line "draggable: 'false'," in joint.ui.selectionView.js like you said and the issue went away.
Any update on this issue? Is this really a bug in jQuery UI?
We'll be reviewing this before the next update. It's on our list.
I was also having same issue and fixed this by commenting draggable: 'false' in selectionView.js... I am not quite sure what I lose by disabling it - if someone may comment?
Fixed in v1.5. draggable: false
was removed. Not needed.
Hi,
If an app uses the SelectionView plugin with jQuery UI the folllowing error occurs at initialization:
Uncaught Error: cannot call methods on draggable prior to initialization; attempted to call method 'false'
This problem can be reproduced in the SelectionView demo app supplied with Rappid by replacing in index.html:
with:
Best regards, José Gonçalves