Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allowFrom not working after interact.js change to v1.3.0 #570

Closed
micvm opened this issue Dec 18, 2017 · 1 comment
Closed

allowFrom not working after interact.js change to v1.3.0 #570

micvm opened this issue Dec 18, 2017 · 1 comment

Comments

@micvm
Copy link

micvm commented Dec 18, 2017

I have tried to migrate the allowFrom feature from the old 1.2.X way interact(draggable).allowFrom(..) to the new 1.3.0 way interact(draggable).draggable({allowFrom: ....}).

Expected behavior

I should be able to define a handle within a draggable which becomes thereby the only way to drag the element itself.

Actual behavior

If I define a handle via allowFrom, the draggable can be dragged from all over the draggable area. I.e. it does not make any difference whether I define allowFrom or not. https://jsfiddle.net/twqb3pnc/1/ . If you try the same code with the old allowFrom method it works as expected.
Moreover, I have had also issues when I set an Element as handle instead of a CSS selector. Do not know if it is related.

System configuration

interact.js version: 1.3.0
Browser name and version: Chrome
Operating System: Ubuntu 16.04

@dannycoulombe
Copy link

dannycoulombe commented Dec 29, 2017

I am using 1.3.2 and found out that there's a typo in the function's name. Try "allowForm" insteand of "allowFrom".

taye added a commit that referenced this issue Jan 2, 2018
@taye taye closed this as completed in f988f5c Jan 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants