Skip to content

Commit 8e0ce8a

Browse files
committed
Fix drag with text bug
1 parent 6f3868d commit 8e0ce8a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

dist/vue-drag-and-drop-list.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* Vue-drag-and-drop-list.js v0.8.3
3-
* (c) 2016 Hejx
3+
* (c) 2017 Hejx
44
* Released under the MIT License.
55
* https://github.com/Alex-fun/vue-drag-and-drop-list#readme
66
*/
@@ -32,7 +32,7 @@ DragAndDropList.install = function(Vue) {
3232

3333
var dndDraggable = JSON.stringify(this.params.dndDraggable);
3434
// Check whether the element is draggable, since dragstart might be triggered on a child.
35-
if (dndDraggable == 'false') return true;
35+
if (dndDraggable == 'false' || this.params.dndDisableIf) return true;
3636

3737
// Serialize the data associated with this element. IE only supports the Text drag type
3838
event.dataTransfer.setData("Text", dndDraggable);

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ DragAndDropList.install = function(Vue) {
2020

2121
var dndDraggable = JSON.stringify(this.params.dndDraggable);
2222
// Check whether the element is draggable, since dragstart might be triggered on a child.
23-
if (dndDraggable == 'false') return true;
23+
if (dndDraggable == 'false' || this.params.dndDisableIf) return true;
2424

2525
// Serialize the data associated with this element. IE only supports the Text drag type
2626
event.dataTransfer.setData("Text", dndDraggable);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-drag-and-drop-list",
3-
"version": "0.8.3",
3+
"version": "0.8.4",
44
"description": "A Vue.js directives with the HTML5 drag & drop API.",
55
"main": "dist/vue-drag-and-drop-list.js",
66
"directories": {

0 commit comments

Comments
 (0)