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

fix(inlinePositioning): infinite loop #994

Merged
merged 1 commit into from Oct 29, 2021
Merged

Conversation

atomiks
Copy link
Owner

@atomiks atomiks commented Oct 28, 2021

@kenticomartinh

This prevents .setProps() from being called if it encountered that placement already. It still resets the array so that flipping can continue to work again — it just breaks the loop. Tried it on your CodePen and the issue is gone.

Fixes #977

@atomiks atomiks merged commit 3598727 into master Oct 29, 2021
@atomiks atomiks deleted the fix/inlinePositioning-loop branch October 29, 2021 11:27
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

Successfully merging this pull request may close these issues.

Infinite loop when combining flip with inline positioning
1 participant