copy-to-clipboard
copy-to-clipboard copied to clipboard
Multiline text on mobile pasted as single line
Multiline text gets pasted as single line on mobile.
Tested with both Chrome on Android and Safari on iOS
Hi, thanks for report
- any specific versions you were testing at?
- is there a page at which I could try to reproduce this issue?
I'm using React-copy-to-clipboard and in package.json it's referencing version "^3".
Try this on mobile and desktop: https://z2q88r7qo3.codesandbox.io/
Tried that on iOS 10.3.1 on built in (I assume that's built in used in other apps, not 100%) / chrome browser – works for me. Let me see if I can get hands on device that could help me reproduce this.
Try pasting it in excel. It shows as single line. Excel parses newline to indicate multiple rows. I am in same boat.
Same problem here. Tried on several phones, all iOS phones are good, but Android phones are screwed. On my Android phone, seems all \n characters are replaced to spaces.
I have the same problem. Is there any solution? On Android phones, “ \ n" is not work
My solution is use another copy module: https://www.npmjs.com/package/react-clipboard.js