Skip to content

Commit

Permalink
Merge pull request #8 from janno-p/master
Browse files Browse the repository at this point in the history
Fix undefined `_this` reference error when using v-model on select, radio and checkbox.
  • Loading branch information
luwanquan authored Apr 8, 2020
2 parents c15de03 + 5d69818 commit 8442edf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/babel-sugar-v-model-v1.1.2-patch.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = ({ types: t }) => {
path.traverse({
JSXAttribute(path) {
const n = path.get("name");
const isInputOrModel = n.node.name === "on-input" || n.node.name === "model";
const isInputOrModel = n.node.name === "on-input" || n.node.name === "on-change" || n.node.name === "model";
if (!isInputOrModel) return;
path.traverse({
MemberExpression(path) {
Expand Down

0 comments on commit 8442edf

Please sign in to comment.