Tip - hovering over child creates empty divs that aren't cleaned up
See original GitHub issueHovering over the child component wrapped by Tip will create empty <div></div>
Expected Behavior
If a div is created for whatever reason, it’s also cleaned up afterwards
Actual Behavior
Hovering over the child component wrapped in Tip will endlessly create more divs
URL, screen shot, or Codepen exhibiting the issue
https://codesandbox.io/s/bitter-sunset-edyo97?file=/src/App.tsx
Steps to Reproduce (In the Codesandbox example)
- Wrap an element with Tip (example uses
<button/>
) - Open devtools and inspect elements
- Navigate to the
<iframe/>
element of the codesandbox preview window - Navigate to the
<body/>
element within that - Now hover over the component wrapped in Tip
- Notice the empty div elements are being appended to the end of the
<body/>
Your Environment
- Grommet version:2.26.0 in Codesandbox; Also experienced in 2.25.1
- Browser Name and version: Chrome
- Operating System and version (desktop or mobile): macOS 11.6.5
Issue Analytics
- State:
- Created a year ago
- Comments:7
Top Results From Across the Web
Prevent child element hovering from breaking parent hover
How can I make it so that the parent keeps its hovered state even if its child elements are hovered? Here is an...
Read more >Empty divs do not respect CSS hover states when using 'color ...
Issue 275044: Empty divs do not respect CSS hover states when using 'color:' to declare color · 1. Create div (no content) with...
Read more >Hover on "Everything But" | CSS-Tricks
Adding a hover state to an element is durn easy. Let's use an opacity change as an example: div { opacity: 1.0; }...
Read more >Controlling tooltips & pop-up menus with components in React
props.children helps us to iterate over it and create a new array of modified children out of it.
Read more >Clear Float: An Easy Guide on Using The CSS Clear Property
The CSS clear float determines how floating elements behave. ... The Empty Div Method; – The Overflow Method; – The Pseudo Selector Method....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
i would love to be assigned this issue
Hey @raji2004 I’m going to un-assign you from this so someone else has the chance to work on it. If you are still interested in working on this just leave a comment and I can re-assign you