Skip to content

Commit

Permalink
Send change events regulary
Browse files Browse the repository at this point in the history
  • Loading branch information
aldipower committed Mar 10, 2016
1 parent a5062e0 commit 02d37ae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/js/stores/AppFormStore.js
Expand Up @@ -531,6 +531,7 @@ var AppFormStore = Util.extendObject(EventEmitter.prototype, {
if (!checkAllFieldsForValidity(storeData.fields)) {
AppFormStore.emit(FormEvents.FIELD_VALIDATION_ERROR);
}
AppFormStore.emit(FormEvents.CHANGE);
}
});

Expand All @@ -553,8 +554,12 @@ function executeAction(action, setFieldFunction) {
if (!errorOccurred) {
rebuildModelFromFields(storeData.app, storeData.fields, fieldId);
AppFormStore.emit(FormEvents.CHANGE, fieldId);

AppFormStore.emit(FormEvents.FIELD_VALIDATION_ERROR);
} else {
AppFormStore.emit(FormEvents.FIELD_VALIDATION_ERROR);

AppFormStore.emit(FormEvents.CHANGE, fieldId);
}
}

Expand Down

0 comments on commit 02d37ae

Please sign in to comment.