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

Add target option #34

Merged
merged 9 commits into from
Apr 6, 2020
Merged

Add target option #34

merged 9 commits into from
Apr 6, 2020

Conversation

Haraldson
Copy link
Contributor

Motivation: Focus traps (in for instance modals) might break copy-text-to-clipboard as document.body is outside its ‘area of operation’. By allowing the consumer to specify an append target within the focus trap, this would no longer be an issue.

Haraldson and others added 3 commits March 23, 2020 13:00
…pended

Motivation: Focus traps (in for instance modals) might break `copy-text-to-clipboard` as `document.body` is outside its ‘area of operation’. By allowing the consumer to specify an append target within the focus trap, this would no longer be an issue.
index.js Outdated Show resolved Hide resolved
readme.md Outdated Show resolved Hide resolved
@sindresorhus
Copy link
Owner

readme.md Outdated Show resolved Hide resolved
sindresorhus and others added 3 commits April 4, 2020 16:58
Omit the word 'optionally' as it is made clear from the context of the options object.
@sindresorhus sindresorhus changed the title Option to manually specify append target to stay within focus trap Add target option Apr 6, 2020
@sindresorhus sindresorhus merged commit c32271e into sindresorhus:master Apr 6, 2020
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

Successfully merging this pull request may close these issues.

2 participants