We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9082ced commit 23223ecCopy full SHA for 23223ec
1 file changed
src/mm-form/mm-form.js
@@ -210,10 +210,12 @@
210
this._validateField(name, value);
211
212
// show messaging in the footer
213
- if (!this.unsaved && this.showUnsavedMessage) {
+ if (this.unsaved && this.showUnsavedMessage) {
214
this._footerMessage = this.footerMessages.warning;
215
this._footerType = 'warning';
216
this._showFooterMessage = true;
217
+ } else {
218
+ this._showFooterMessage = false;
219
}
220
221
},
@@ -226,11 +228,11 @@
226
228
_diffData: function() {
227
229
var diff = [];
230
for (var key in this.formData) {
- if (key !== this.data[key].value) {
231
+ if (this.formData[key] !== this.data[key].value) {
232
diff.push(key);
233
234
- return !diff.length > 0;
235
+ return diff.length > 0;
236
237
238
// form validation
0 commit comments