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

sortComplete event support #1259

Closed
nowres opened this issue May 13, 2017 · 4 comments
Closed

sortComplete event support #1259

nowres opened this issue May 13, 2017 · 4 comments

Comments

@nowres
Copy link

nowres commented May 13, 2017

Hi,

When setting sortBy option on initialization, arrangeComplete event is not triggered I have to call grid.isotope({ sortBy : 'name' }); after initialization as a workaround

@nowres nowres closed this as completed May 13, 2017
@nowres nowres reopened this May 13, 2017
@desandro
Copy link
Member

I'm sorry to see you're having trouble with Isotope. Could you provide a reduced test case? See Submitting Issues in the contributing guidelines.

@nowres
Copy link
Author

nowres commented Jun 8, 2017

I checked again, the event gets fired if we bind it before isotope initialization:

https://codepen.io/anon/pen/jwbJOa

@desandro
Copy link
Member

desandro commented Jun 8, 2017

@nowres That's because the initial layout involves arrange, but there is no transition for that initial arrange.

@nowres
Copy link
Author

nowres commented Jun 8, 2017

@desandro That seems logic, Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants