Skip to content

Commit 3348ab7

Browse files
authored
Set isDirty to false on reset()
From a UX perspective, this makes sense to me. If I'm resetting a clone, then there are no longer any changes present, and therefore the form is..."clean". I'm usually using a "Save" and "Reset" button which are set to :disabled="!isValid && !isDirty". In this case it would be nice to reset isDirty so that the reset button can be disabled when no changes are present.
1 parent cbfc29b commit 3348ab7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/FeathersVuexFormWrapper.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export default {
7272
},
7373
reset() {
7474
this.clone.reset()
75+
this.isDirty = false
7576
this.$emit('reset', this.item)
7677
},
7778
async remove() {

0 commit comments

Comments
 (0)