Skip to content

Commit

Permalink
Fixed emit decorator broken in PR kaorun343#291.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmoneh committed Apr 14, 2020
1 parent 37033b7 commit 2c5ed62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vue-property-decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,8 @@ export function Emit(event?: string) {
this.$emit(emitName, args)
}
} else {
this.$emit(emitName, returnValue)
args.unshift(returnValue);
this.$emit(emitName, ...args)
}
}

Expand Down

0 comments on commit 2c5ed62

Please sign in to comment.