Overlapped code when `Copy to Clipboard > Image`
See original GitHub issueI copied the following code from https://github.com/kitze/conditional-wrap
import React from 'react';
import { render } from 'react-dom';
import { Tooltip } from 'react-tippy';
import ConditionalWrap from 'conditional-wrap';
const Button = ({ tooltip, children }) => (
<ConditionalWrap
condition={!!tooltip}
wrap={children => (
<Tooltip position="bottom" title={tooltip}>
{children}
</Tooltip>
)}
>
<button>{children}</button>
</ConditionalWrap>
);
const Demo = () => (
<div>
<Button> Normal button </Button>
<Button tooltip="Hi there!"> Button with a tooltip! </Button>
</div>
);
render(<Demo />, document.getElementById('root'));
And it gave this pic → https://twitter.com/deadcoder0904/status/1245953211439165441/
Notice the Button
at the bottom is overlapped with the div
while in the editor it looks perfect
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Overlay and copy picture over other picture - Stack Overflow
Overlay and copy picture over other picture · 1. Is there a reason you need to do this dynamically in HTML/CSS? · If...
Read more >Overlapping Image & Text in Divi - YouTube
Learn how to overlap Image and Text in this tutorial. We'll also move the Image and Text on hover as well as make...
Read more >How to place a text to overlap with an image?
To overlap elements: Add any two elements on the page (ex. image and text); Open the edit window of the second element ...
Read more >Copy & Paste & The Web | CSS-Tricks
Accidental Overlaps It's often done by laying a gradient image over top of that text. You can see through part of it, but...
Read more >Copy images in buffer - Emacs Stack Exchange
I'd like to copy part of a buffer including all images. The code below copies the text but not the image. How do...
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’ll close this one then & add a note there. Since it happened to me twice with the same code 😂
Yep, it gives the same. Here you go (I did this just now) 👇