question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tip - hovering over child creates empty divs that aren't cleaned up

See original GitHub issue

Hovering 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)

  1. Wrap an element with Tip (example uses <button/>)
  2. Open devtools and inspect elements
  3. Navigate to the <iframe/> element of the codesandbox preview window
  4. Navigate to the <body/> element within that
  5. Now hover over the component wrapped in Tip
  6. 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:closed
  • Created a year ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
raji2004commented, Oct 1, 2022

i would love to be assigned this issue

0reactions
jcfilbencommented, Oct 26, 2022

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found