Comments (4)
I think hiding them on scroll can be a bit of an unexpected behavior. A more expected behavior for them would probably be to stay near the target, but in this case the target is also in a portal (in the Dialog
), while the portal of the tooltip is absolutely positioned within the body
, that doesn't scroll.
What could possible solution look like? Portals within the portals?
from elements.
This is related to #95 as well. It's really a problem of the popover component I thinking.
from elements.
This was my naive approach yesterday to detect the highest scrolling parent..
With portals opening adjacent to each other in the tree we can't really use that.
// Use the portal element to position things and scroll if necessary? Would that work?
<PortalElement>
<Dialog />
<Tooltip />
</PortalElement>
from elements.
I'm thinking the above could work, but requires the dialog to change the portal component if its the one opening it (to overflow-y: auto
)
from elements.
Related Issues (20)
- Typescript Update: Dialog
- Typescript Update: Popover
- Typescript Update: Feedback
- Move input to controls package.
- Typescript Update: Utils
- Add hooks package.
- Typescript Update: Autocomplete
- Typescript Update: Menu
- Typescript Update: Progress
- Typescript Update: Select
- Need an easy way to add styles to the ConfirmationDialog top div wrapper (Scrim) HOT 2
- React is not defined when using Select from @rent_avail/controls HOT 1
- Select component breaks upon inputting invalid regex
- Need success variant on button HOT 1
- Avatar name
- Control Button in loading state does not prevent additional form submissions
- FullscreenFeedback component does not have a way to change z-index
- update select-input value from outside the component
- Popover position is calculated incorrectly when closest scrollable parent is not positioned
- Toast showing up behind other elements HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elements.