-
Notifications
You must be signed in to change notification settings - Fork 240
Research how layers will work #7
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
Comments
Hmpf. Definitely react doesn't solve all problems :) And no you're not crazy thankfully. Let me know how it goes! |
Ok the three implementations that seem to "matter" are:
Observations:
|
Thanks to conversation on IRC I got some nice help and a tip from @jquense (thanks!) leading to his repo https://github.com/jquense/react-layer |
The conclusion is the following:
Overall we have a system that just-works, leaving various design tradeoffs un-studied and |
I've spent some sensible time to research on this. As a result I end up with the library which permanently solved this problem for me. Check out, please, would be good to know the impressions and everything https://github.com/AlexeyFrolov/react-layer-stack |
After trying to refactor into a usable and likely more-correct system from the current nonsense that this sketch is using, I quickly realized that I've got the hardest part of the problem ahead of me:
ReactLayersMixin
. facebook/react#379@stresslimit So the current takeaways:
Example from React Bootstrap: http://react-bootstrap.github.io/components.html#popovers
The good news is I am not crazy; all my concerns and notes about the problem I'm seeing unfold/thinking-through are leading to the right place. For example I basically came to this conclusion on the way home repeated by someone else way before:
react-bootstrap/react-bootstrap#27 (comment)
To paraphrase, have
popover
completely pass-through its children in itsrender
and then render its ownpopover
component to thebody
.It seems that all discussion culminate in the
OverlayTrigger
component in Bootstrap React and the dedicated repo linked abovepieterv/react-layers
.Lastly, in case readers do not read the links, keep in mind these links include discussions and references from the core community so this issue is taking from "trusted" minds in this domain.
The text was updated successfully, but these errors were encountered: