-
Notifications
You must be signed in to change notification settings - Fork 438
sortable input #11
Comments
How would you differentiate a dragging action to select a bunch of text from a want to move the box? I think the only UI pattern that works here is if you add some sort of anchor that is used explicitly for moving (JqueryUI gives you an option to handle that) and then you keep the default textarea behavior for selecting a bunch of text. |
@gauravspatel +1 on using the handle option , as a solution to this use case. |
Handle already works. |
I'm evaluating the case of closing this issue, since the concept of ui-sortable is to provide functionality that is on par with plain jqueryui. Moreover handle would be the obvious choice for anyone coming from the jquery world. I would be happy though, to reference this solution in README if someone is willing to abstract and maintain a separate repo. |
I have a similar problem in a project I'm working on. I use ui-sortable on a list with inputs as elements. In general it works, meaning the elements can be modified and sorted, but at some point the model and the list get out of sync. Apparently that is due to the fact that i have another dom element in the and the in my Can someone tell me what i am doing wrong or some sort of workaround? thank you in advance |
One quick thing to fix is using ng-model instead of ng:model. I don't quite understand what steps you're doing to cause the syncage On Tue, Mar 11, 2014 at 5:19 AM, LRueckert [email protected] wrote:
|
First of all, the angular-ui version you are using is old. Angular-ui has splitted and each directive is now a separate module. Beside that, I'm not convinced the results you get have something to do with the input. So if the problem persists after you update ui-sortable please open a separate issue. PS: performance-wise you should use |
Thank you for the quick responses and tipps. |
Hmmm. I offered it a year ago. I don't understand why jQuery dependency still in angular-ui sortable project. First kill it. |
Add, please, special directive for sortable inputs/textarea, like this http://plnkr.co/edit/iDAEpI?p=preview
And make demo
The text was updated successfully, but these errors were encountered: