desandro / draggabilly

:point_down: Make that shiz draggable
https://draggabilly.desandro.com
MIT License
3.86k stars 386 forks source link

Form inputs inside of Draggabilly #17

Closed cmalven closed 11 years ago

cmalven commented 11 years ago

Form inputs inside of a Draggabilly element can not be (easily) focused. I've manage to get it to take focus a couple times, but always by doing something weird to it like right-clicking on it.

I assume this is because Draggabilly is commandeering all click events for the parent. I don't think this would ever be the expected behavior, so might want to prevent this from happening or at least offer a way around it.

Minimum test case: http://cdpn.io/zoDbt

desandro commented 11 years ago

Yes, all click/touch events are being hijacked, or "commandeered" as you put it. If you have child element that should not be hijacked, I suggest using the handle option.

Thanks for providing the test case!