Skip to content

Commit 61a9f5c

Browse files
committed
pre-release fixups
1 parent 2fc6056 commit 61a9f5c

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

src/components/errorDisplay.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
computed: {
99
message(){
1010
let message = false;
11-
if ( !( this.field in this.form.$errors ) || this.form[ this.field ].$active || !this.form[this.field].$dirty ) return message;
11+
if ( !( this.field in this.form.$errors ) || !( this.field in this.form ) || this.form[ this.field ].$active || !this.form[this.field].$dirty ) return message;
1212
let errors = this.form.$errors[ this.field ];
1313
Object.keys( errors ).some( errorKey => {
1414
if ( typeof errors[ errorKey ] != 'boolean' ){

test/unit/specs/ErrorDisplay.spec.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ describe("errorDisplay.vue", () => {
2828
test: {
2929
foo: 'This is a test'
3030
}
31+
},
32+
test: {
33+
'$active': false,
34+
'$dirty': true
3135
}
3236
},
3337
key: 'test'
@@ -47,6 +51,10 @@ describe("errorDisplay.vue", () => {
4751
bar: 'This is a test',
4852
foobar: 'testing'
4953
}
54+
},
55+
test: {
56+
'$active': false,
57+
'$dirty': true
5058
}
5159
},
5260
key: 'test'
@@ -65,6 +73,10 @@ describe("errorDisplay.vue", () => {
6573
test: {
6674
foo: false
6775
}
76+
},
77+
test: {
78+
'$active': false,
79+
'$dirty': true
6880
}
6981
},
7082
key: 'test'

0 commit comments

Comments
 (0)