File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 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 ) ;
Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff line change 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" : {
You can’t perform that action at this time.
0 commit comments