File tree 1 file changed +11
-3
lines changed
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,15 @@ export default class AddressNL extends Field {
35
35
label : 'Address NL' ,
36
36
input : true ,
37
37
key : 'addressNL' ,
38
- defaultValue : this . emptyValue ,
38
+ defaultValue : {
39
+ postcode : '' ,
40
+ houseNumber : '' ,
41
+ houseLetter : '' ,
42
+ houseNumberAddition : '' ,
43
+ city : '' ,
44
+ streetName : '' ,
45
+ secretStreetCity : '' ,
46
+ } ,
39
47
validateOn : 'blur' ,
40
48
deriveAddress : false ,
41
49
layout : 'doubleColumn' ,
@@ -68,7 +76,7 @@ export default class AddressNL extends Field {
68
76
return AddressNL . schema ( ) ;
69
77
}
70
78
71
- static get emptyValue ( ) {
79
+ get emptyValue ( ) {
72
80
return {
73
81
postcode : '' ,
74
82
houseNumber : '' ,
@@ -152,7 +160,7 @@ export default class AddressNL extends Field {
152
160
return ;
153
161
}
154
162
const required = this . component ?. validate ?. required || false ;
155
- const initialValues = { ...AddressNL . emptyValue , ...this . dataValue } ;
163
+ const initialValues = { ...this . emptyValue , ...this . dataValue } ;
156
164
157
165
this . reactRoot . render (
158
166
< IntlProvider { ...this . options . intl } >
You can’t perform that action at this time.
0 commit comments