Fixes problem reported on #431

This commit is contained in:
Zeno Rocha 2017-06-30 15:53:12 -03:00
parent 2e9acfc148
commit ff4c7e16f0

View File

@ -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>
<pre class="snippet"><code class="js">new Clipboard('.btn', {
container: document.getElementById('#modal')
container: document.getElementById('modal')
});</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>