Skip to content

Commit 7994135

Browse files
committed
correct plugin mounting examples
1 parent 5c0a7ec commit 7994135

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,13 @@ Cherrypick plugins:
7676
// Cherrypick extra plugins
7777
import Sortable, { MultiDrag, Swap } from 'sortablejs';
7878

79-
Sortable.mount(MultiDrag, Swap);
79+
Sortable.mount(new MultiDrag(), new Swap());
8080

8181

8282
// Cherrypick default plugins
8383
import Sortable, { AutoScroll } from 'sortablejs/modular/sortable.core.esm.js';
8484

85-
Sortable.mount(AutoScroll);
85+
Sortable.mount(new AutoScroll());
8686
```
8787

8888

0 commit comments

Comments
 (0)