salvattore icon indicating copy to clipboard operation
salvattore copied to clipboard

The plugin does not work when the div is display:none

Open loaibassam opened this issue 10 years ago • 2 comments

If the div is displayed: none; the plugin will completely ignore, it will also cause problems on Safari and break the website as it shows an error related to :before and :after not found "which what the plugin uses". Is there a workaround? to make the plugin work on Div's that are not displayed yet?

I have put togther a beta testing here: http://loai.directory/beta

As you can see, there are two .grid div's one is shown by default and one is hidden. Please help. Thanks.

loaibassam avatar Jan 23 '15 17:01 loaibassam

Noticed this myself. A css-only workaround I was able to use was instead of using display: none, use visibility: hidden instead, and if you need any animation/toggling, use opacity 0 - 1. If you don't want it to take up any space, you can use width/height 0.

vaughnroyko avatar Mar 24 '15 00:03 vaughnroyko

I'm struggling with this too..

johtso avatar Nov 14 '16 18:11 johtso