Skip to content

Commit 2fd255f

Browse files
Update readme
1 parent b75dd0b commit 2fd255f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ Required: `false`<br>
9595
Default: `null`
9696
9797
Input array to draggable component. Typically same array as referenced by inner element v-for directive.<br>
98-
Should not used directly but used only though the `v-model` directive:
98+
This is the preferred way to use Vue.draggable as it is compatible with Vuex.<br>
99+
It should not be used directly but only though the `v-model` directive:
99100
```html
100101
<draggable v-model="myArray">
101102
```
@@ -107,7 +108,7 @@ Default: `null`
107108
108109
Altenative to the `value` prop, list is an array to be synchronized with drag-and-drop.<br>
109110
The main diference is that `list` prop is updated by draggable component using splice method, whereas `value` is immutable.<br>
110-
Using `v-model` and `value` is the compatible with Vuex and thus is the preferred way of using draggable.
111+
**Do not use in conjunction with value prop.**
111112
112113
#### options
113114
Type: `Object`<br>

0 commit comments

Comments
 (0)