watcher mira dirty antes de ver si los datos cambian

This commit is contained in:
Daniel Herrero 2018-01-17 09:13:44 +01:00
parent 8f9f14239e
commit 260830dc95
1 changed files with 1 additions and 0 deletions

View File

@ -181,6 +181,7 @@ export default class Watcher extends Component {
}
dataChanged() {
if (!this.form.$dirty) return false;
let newData = this.copyInNewObject(this.data);
return !isEqual(newData, this.orgData);
}