For some reason, the copy button doesn't work as expected and just copies only the last character or sometimes doesn't even bother to copy that.
From my initial understanding, it seems that it has something to do with incorporating Clipboard.JS. Maybe I'm doing it wrong but needs to be investigated further for better understanding.
Clipboard.JS
. Maybe I'm doing it wrong but needs to be investigated further for better understanding.