Skip to content

Commit

Permalink
fix itk-form tpl render bug
Browse files Browse the repository at this point in the history
  • Loading branch information
xieyu33333 committed Mar 2, 2016
1 parent 3521b01 commit 7f80373
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build/itoolkit.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2942,7 +2942,6 @@ riot.tag('itk-form', '<form onsubmit="{ submit }" > <yield> </form>', function(o
validArr.push(e);
}
}
console.log(validArr);
if (!validArr.length) {
if (config.normalSubmit) {
self.root.firstChild.setAttribute('action', action);
Expand Down Expand Up @@ -3106,6 +3105,7 @@ riot.tag('itk-form', '<form onsubmit="{ submit }" > <yield> </form>', function(o
self.rules[ruleConfig] = self.rulesConfig[ruleConfig];
}
}
self.update();
};


Expand Down
4 changes: 2 additions & 2 deletions build/itoolkit.min.js
100644 → 100755

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions demos/itk-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ <h2>itk-form</h2><hr>
console.log('beforeSubmit');
}
}

itk.mount('itk-form', opts);

var theForm = document.querySelector('itk-form');
Expand Down
2 changes: 1 addition & 1 deletion src/itoolkit.js
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,6 @@ riot.tag('itk-form', '<form onsubmit="{ submit }" > <yield> </form>', function(o
validArr.push(e);
}
}
console.log(validArr);
if (!validArr.length) {
if (config.normalSubmit) {
self.root.firstChild.setAttribute('action', action);
Expand Down Expand Up @@ -1241,6 +1240,7 @@ riot.tag('itk-form', '<form onsubmit="{ submit }" > <yield> </form>', function(o
self.rules[ruleConfig] = self.rulesConfig[ruleConfig];
}
}
self.update();
};


Expand Down
2 changes: 1 addition & 1 deletion src/pc/itk-form.tag
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,6 @@
validArr.push(e);
}
}
console.log(validArr);
if (!validArr.length) {
if (config.normalSubmit) {
self.root.firstChild.setAttribute('action', action);
Expand Down Expand Up @@ -591,6 +590,7 @@
self.rules[ruleConfig] = self.rulesConfig[ruleConfig];
}
}
self.update();
};


Expand Down

0 comments on commit 7f80373

Please sign in to comment.