mirror of
https://github.com/zenorocha/clipboard.js.git
synced 2023-08-10 21:12:48 +03:00
Fixes problem reported on #431
This commit is contained in:
parent
2e9acfc148
commit
ff4c7e16f0
@ -172,7 +172,7 @@ clipboard.on('error', function(e) {
|
|||||||
<p>For use in Bootstrap Modals or with any other library that changes the focus you'll want to set the focused element as the <code>container</code> value.</p>
|
<p>For use in Bootstrap Modals or with any other library that changes the focus you'll want to set the focused element as the <code>container</code> value.</p>
|
||||||
|
|
||||||
<pre class="snippet"><code class="js">new Clipboard('.btn', {
|
<pre class="snippet"><code class="js">new Clipboard('.btn', {
|
||||||
container: document.getElementById('#modal')
|
container: document.getElementById('modal')
|
||||||
});</code></pre>
|
});</code></pre>
|
||||||
|
|
||||||
<p>Also, if you are working with single page apps, you may want to manage the lifecycle of the DOM more precisely. Here's how you clean up the events and objects that we create.</p>
|
<p>Also, if you are working with single page apps, you may want to manage the lifecycle of the DOM more precisely. Here's how you clean up the events and objects that we create.</p>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user