Skip to content

Commit 923ca01

Browse files
author
pc-david\david.desmaisons
committed
fix for undefined group option
1 parent f5f31a3 commit 923ca01

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

dist/vuedraggable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
127127
return this.transitionMode ? this.$el.children[0] : this.$el;
128128
},
129129
isCloning: function isCloning() {
130-
return !!this.options && this.options.group !== null && this.options.group.pull === 'clone';
130+
return !!this.options && !!this.options.group && this.options.group.pull === 'clone';
131131
},
132132
realList: function realList() {
133133
return !!this.list ? this.list : this.value;

dist/vuedraggable.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vuedraggable",
3-
"version": "2.8.6",
3+
"version": "2.9.0",
44
"description": "draggable component for vue",
55
"main": "dist/vuedraggable.js",
66
"files": [

src/vuedraggable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
},
111111

112112
isCloning () {
113-
return (!!this.options) && (this.options.group !== null) && (this.options.group !== undefined) && (this.options.group.pull === 'clone')
113+
return (!!this.options) && (!!this.options.group !== null) && (this.options.group.pull === 'clone')
114114
},
115115

116116
realList () {

0 commit comments

Comments
 (0)