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

Can't trigger events on interactive elements #212

Closed
arielpontes opened this issue Jun 19, 2015 · 3 comments
Closed

Can't trigger events on interactive elements #212

arielpontes opened this issue Jun 19, 2015 · 3 comments

Comments

@arielpontes
Copy link

Maybe I am missing something, but I have a draggable div restricted to the parent on dragEnd that by default is positioned at the bottom of its container and whose text is updated from a textarea elsewhere in the page. As new lines are added the draggable div grows and the lower edge comes out of the container. I tried to trigger dragmove and dragend on the draggable div on textarea changes but there's no effect. I just want it to reposition itself back inside the parent, just like it does when I drag it manually. It seems like a bad solution to duplicate this behavior on my end when it's already somewhere in the library. I just need a clean way to access it through the API.

@taye
Copy link
Owner

taye commented Jun 20, 2015

Exposing internal methods is planned and is currently being worked towards as part of #110, but for now, duplication is the only solution.

@taye
Copy link
Owner

taye commented Nov 8, 2015

It would be difficult to open the modifier functions to be usable externally. It might happen eventually but probably a long time from now if at all so I'll close this issue and leave duplication as the best solution.

@taye
Copy link
Owner

taye commented Mar 23, 2018

@arielpontes I've added a new method that let's you simulate actions and re-apply modifiers. See #610.

@taye taye closed this as completed Mar 23, 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