Skip to content

Commit

Permalink
Merge pull request #3 from thebeekeeper/master
Browse files Browse the repository at this point in the history
Added emits option to prevent warnings
  • Loading branch information
David-Desmaisons authored Nov 30, 2020
2 parents 5ada9eb + f93e285 commit 4b21441
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/vuedraggable.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
getValidSortableEntries
} from "./core/componentBuilderHelper";
import { computeComponentStructure } from "./core/renderHelper";
import { events } from "./core/sortableEvents";
import { h, defineComponent, nextTick } from "vue";

function emit(evtName, evtData) {
Expand Down Expand Up @@ -67,13 +68,21 @@ const props = {
}
};

const emits = [
"update:modelValue",
"change",
...[...events.manageAndEmit, ...events.emit].map(evt => evt.toLowerCase())
];

const draggableComponent = defineComponent({
name: "draggable",

inheritAttrs: false,

props,

emits,

data() {
return {
error: false
Expand Down

0 comments on commit 4b21441

Please sign in to comment.