Skip to content

Commit f1ad3b2

Browse files
Merge pull request #282 from dvdbot/patch-1
this._sortable undefined in beforeDestroy Hook
2 parents 6afcc1f + 206bac0 commit f1ad3b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vuedraggable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
},
152152

153153
beforeDestroy() {
154-
this._sortable.destroy()
154+
if(this._sortable !== undefined) this._sortable.destroy();
155155
},
156156

157157
computed: {

0 commit comments

Comments
 (0)