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

can't use ClipboardService for copy #158

Closed
BennieMeng opened this issue Aug 30, 2018 · 5 comments
Closed

can't use ClipboardService for copy #158

BennieMeng opened this issue Aug 30, 2018 · 5 comments
Assignees
Labels

Comments

@BennieMeng
Copy link

i just want to use service to realize, but it can't work, see follow,
stackblitz

@maxisam maxisam self-assigned this Aug 30, 2018
@maxisam
Copy link
Owner

maxisam commented Aug 30, 2018

Sorry about that. Please try 11.1.6. thx

@BennieMeng
Copy link
Author

sorry , i change the version to 11.1.6, bug it also didn't work, please please me look for where is wrong.
stackblitz

@haengjin
Copy link

it also didn't work too.. (11.1.6)

@maxisam
Copy link
Owner

maxisam commented Aug 31, 2018

That's strange. I am working on it. Sorry about this.

@maxisam
Copy link
Owner

maxisam commented Aug 31, 2018

Interesting, I just add a demo in my repo for this feature. It does work. I think somehow stackblitz cache it? Checkout branch hotfix/avoid-focus-trapper, you will see it work on demo.

@maxisam maxisam closed this as completed Sep 1, 2018
maxisam added a commit that referenced this issue Sep 1, 2018
* fix: remove package-lock

* chore: add formating config

* chore: update setting

* fix: add container as input property.

the container is the one to append the tempary textarea. It is default to body if unset   #145

* fix: handle multiple clipboard with different container use case

* docs: update

* chore: update demo to show the usage of container for focus trapper case

* fix: unit test and add test case

* docs: update

* chore: fix travis publish

* config: change package path

* doc: add ad for other package

* chore: update version

* fix: default container as doc.body from service for direct call

* refactor: use default syntax

* style: reformat

* add unit test for calling copyFromContent directly #158, #159

* chore: version bump

* demo: update example for service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants