mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-05-18 04:42:45 +00:00
[fix] Clipboard copy edge-case
Make sure clipboard works even if global CSS is affecting user text selection. Fix #1559
This commit is contained in:
committed by
Nicolas Gallagher
parent
324995ec2b
commit
cd9be22947
@@ -35,6 +35,7 @@ export default class Clipboard {
|
||||
node.style.opacity = '0';
|
||||
node.style.position = 'absolute';
|
||||
node.style.whiteSpace = 'pre-wrap';
|
||||
node.style.userSelect = 'auto';
|
||||
body.appendChild(node);
|
||||
|
||||
// select the text
|
||||
|
||||
Reference in New Issue
Block a user