We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1359e0c commit 191c255Copy full SHA for 191c255
resources/js/alpine/codeBlock.js
@@ -4,7 +4,7 @@ export default () => ({
4
copyToClipboard() {
5
navigator.clipboard.writeText(
6
// This requires torchlight.options.copyable to be "true" on the PHP side.
7
- this.$root.querySelector('.torchlight-copy-target').textContent
+ this.$root.querySelector('.torchlight-copy-target').textContent.trim()
8
).then(() => this.showMessage = true)
9
10
setTimeout(() => (this.showMessage = false), 2000)
0 commit comments