Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

universal-clipboard iOS 无法复制 #94

Closed
javaxiu opened this issue May 9, 2020 · 6 comments
Closed

universal-clipboard iOS 无法复制 #94

javaxiu opened this issue May 9, 2020 · 6 comments
Assignees
Milestone

Comments

@javaxiu
Copy link

javaxiu commented May 9, 2020

实测,在任何版本的 iOS ,web 环境下,复制功能是无效的,粘贴板内容会是空的。
review 代码,把这行删掉可以解决问题
https://github.com/raxjs/universal-api/blob/master/packages/clipboard/src/web/index.ts#L11

input 框的插入移除时间很短,肉眼看不到有变化,行高不设置为 0 也不会有影响

@SoloJiang
Copy link
Collaborator

会存在闪动吧

@javaxiu
Copy link
Author

javaxiu commented May 11, 2020

如 issue 所提,实测高度为 0 的情况下肉眼并不可见闪动。

@SoloJiang SoloJiang added this to the 2020/07/08 milestone Jul 1, 2020
@ChrisCindy
Copy link
Contributor

@DOBEEE check 一下 @uni/clipboard 是否也存在这个问题

@brightcd
Copy link
Contributor

@uni/clipboard 也存在这个问题,并且实测safari删掉高度也不能复制

@cccRaim
Copy link

cccRaim commented Jun 2, 2021

这个是ios的限制,解决方案是至少设置1px,可以考虑用绝对定位把相关元素移动到视窗外,如-1000px

@DOBEEE
Copy link
Collaborator

DOBEEE commented Jun 7, 2021

@uni/clipboard@1.0.5-beta 已修复

@DOBEEE DOBEEE closed this as completed Jun 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants