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

afterMove works very sporadically and sometimes not at all #148

Open
ivaluev opened this issue Jun 18, 2015 · 2 comments
Open

afterMove works very sporadically and sometimes not at all #148

ivaluev opened this issue Jun 18, 2015 · 2 comments

Comments

@ivaluev
Copy link

ivaluev commented Jun 18, 2015

as a test pls see this fiddle http://jsfiddle.net/bxn0fsoz/10/

if you move an item first time - alert fires ok - then if second it may fire and may not - try sorting up to 10 times different items - to see how it fires and then stops firing and then starts firing again and again stops

@jhasselkus
Copy link

It looks like knockout-sortable isn't compatible with any variety of deferred updates. If you remove the .extend({rateLimit: 50}) from model.items your fiddle works fine.

@ricardobrandao
Copy link
Contributor

ricardobrandao commented Jun 17, 2016

+1 for

It looks like knockout-sortable isn't compatible with any variety of deferred updates.

afterMove only runs once per element when using knockout 3.4 with ko.options.deferUpdates = true - please check this fiddle.

@rniemeyer is this a known issue?

#166 solved the problem with the deferred updates in the new knockout version.

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

3 participants