-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
Multiple issues with reorder / delete demo on Codepen. #1601
Comments
Hey @stefek99 great find, thanks! I've updated the codepen.
|
Here:
|
Ah, the ionic header, I was looking in the html header. Thanks, fixed |
Still getting:
Just start randomly reordering elements... (not sure what is the most reliable way to reproduce) |
Ah, right. It happens when dragging between iterations of 1-9, using unique ID's all the way to 50 works. Fixed. Thanks. |
I see that items are now 0...50 but it doesn't fix the issue. (still getting a lot of red in the console)
|
Ah, I see. It wasn't happening for me at first, but once I get one, there's a lot. We'll take a look. |
This one has me a bit stumped. Even when adding the track by parameter and updating to our current version of ionic, which has an updated version of angular, I get the same error. http://codepen.io/perrygovier/pen/eHyjl?editors=101 This may be a problem in angular itself. @ajoslin can you confirm? |
@perrygovier, what should the error be here? I go into the codepen and reorder some delete some, reorder again, and all looks to be well. I don't see any errors in the console, either. |
It takes a while to get it to start, but after 10-20 sec of reordering, I can trigger an error in my console, where it complains of duplicate indexes. Once it starts, every reorder will trigger an error. Everything displays properly. |
I have the same issue. My current workaround is using this lib for reorder: https://github.com/JimLiu/angular-ui-tree |
As mentioned by @berlinhudson in ticket #1716, if you show the |
angular.element(...).closest is not a function touchHold @ sortable.js:34 |
Docs: http://ionicframework.com/docs/api/directive/ionList/
Pen: http://codepen.io/ionic/pen/JsHjf
Video: https://www.youtube.com/watch?v=DAWCYDnw7Q0 (127 seconds)
Issues:
reoder
edit
andshare
fromIndex
andtoIndex
to reorder function (that is causing ng-repeat to choke)My related question on StackOverflow: http://stackoverflow.com/questions/24139967/how-to-pass-multiple-arguments-to-ionic-reorder-directive
I know that you are aware: #768 (please have mine +1 on that)
The text was updated successfully, but these errors were encountered: