Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

fix(Popup): update positions after each render#678

Merged
layershifter merged 3 commits intomasterfrom
fix/popup-force-update
Jan 9, 2019
Merged

fix(Popup): update positions after each render#678
layershifter merged 3 commits intomasterfrom
fix/popup-force-update

Conversation

@layershifter
Copy link
Member

Fixes #641.


normal
overflow

"react-dom": "^16.3.0"
},
"resolutions": {
"create-react-context": "0.2.2"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

react-popper now defines max version of create-react-context

https://github.com/FezVrasta/react-popper/releases/tag/v1.3.1

Copy link
Contributor

@mnajdova mnajdova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 works like charm :)

@layershifter layershifter merged commit 4b684e5 into master Jan 9, 2019
@layershifter layershifter deleted the fix/popup-force-update branch January 9, 2019 14:18
@kuzhelov
Copy link
Contributor

kuzhelov commented Jan 10, 2019

unfortunately, there is another problem introduced by this fix - now an infinite render loop starts on Popup open.

In fact, we just need to force position update on async operation finish. I would suggest (as a very base step) to stick to the same strategy used by Popper - i.e. let the client explicitly decide when this update should be made.

popup-problem

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

🧰 fix Introduces fix for broken behavior. 🚀 ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants