Skip to content

Commit

Permalink
Fix "mounted" event bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
amostajo committed Oct 24, 2017
1 parent f033089 commit d271722
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
7 changes: 5 additions & 2 deletions dist/vue.form.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @author Alejandro Mostajo <http://about.me/amostajo>
* @copyright 10Quality <http://www.10quality.com>
* @license MIT
* @version 2.0.2
* @version 2.0.3
*/
Vue.component('vform', Vue.extend({
props:
Expand Down Expand Up @@ -699,7 +699,10 @@ Vue.component('vform', Vue.extend({
return this.records.length > 0;
},
},
ready: function()
/**
* @since 2.0.3 "ready" replaced with "mounted".
*/
mounted: function()
{
if (this.fetchOnready)
this.$parent.submit();
Expand Down
2 changes: 1 addition & 1 deletion dist/vue.form.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-form-10q",
"version": "2.0.2",
"version": "2.0.3",
"description": "Form component for Vue JS.",
"main": "dist/vue.form.min.js",
"repository": {
Expand Down
7 changes: 5 additions & 2 deletions src/vue.form.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @author Alejandro Mostajo <http://about.me/amostajo>
* @copyright 10Quality <http://www.10quality.com>
* @license MIT
* @version 2.0.2
* @version 2.0.3
*/
Vue.component('vform', Vue.extend({
props:
Expand Down Expand Up @@ -699,7 +699,10 @@ Vue.component('vform', Vue.extend({
return this.records.length > 0;
},
},
ready: function()
/**
* @since 2.0.3 "ready" replaced with "mounted".
*/
mounted: function()
{
if (this.fetchOnready)
this.$parent.submit();
Expand Down

0 comments on commit d271722

Please sign in to comment.