From 5e0a0e56e178c08bdec35294aa4c1d1b1c225155 Mon Sep 17 00:00:00 2001 From: Daniel4Digital Date: Fri, 21 May 2021 17:53:23 +0100 Subject: [PATCH] Prevent #75 bug from happen --- vue-clipboard.js | 1 + 1 file changed, 1 insertion(+) diff --git a/vue-clipboard.js b/vue-clipboard.js index 41af06e..83bdfb3 100644 --- a/vue-clipboard.js +++ b/vue-clipboard.js @@ -64,6 +64,7 @@ var VueClipboard = { } }, unbind: function (el, binding) { + if(!el._vClipboard) return if (binding.arg === 'success') { delete el._vClipboard_success } else if (binding.arg === 'error') {