File tree 1 file changed +10
-7
lines changed
1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -39,17 +39,13 @@ export default {
39
39
else if ( this . model && this . schema . model )
40
40
val = objGet ( this . model , this . schema . model ) ;
41
41
42
- if ( isFunction ( this . formatValueToField ) )
43
- val = this . formatValueToField ( val ) ;
44
-
45
- return val ;
42
+ return this . formatValueToField ( val ) ;
46
43
} ,
47
44
48
45
set ( newValue ) {
49
46
let oldValue = this . value ;
50
47
51
- if ( isFunction ( this . formatValueToModel ) )
52
- newValue = this . formatValueToModel ( newValue ) ;
48
+ newValue = this . formatValueToModel ( newValue ) ;
53
49
54
50
let changed = false ;
55
51
if ( isFunction ( this . schema . set ) ) {
@@ -167,7 +163,14 @@ export default {
167
163
getFieldID ( schema ) {
168
164
const idPrefix = this . formOptions && this . formOptions . fieldIdPrefix ? this . formOptions . fieldIdPrefix : "" ;
169
165
return slugifyFormID ( schema , idPrefix ) ;
170
- }
166
+ } ,
171
167
168
+ formatValueToField ( value ) {
169
+ return value ;
170
+ } ,
171
+
172
+ formatValueToModel ( value ) {
173
+ return value ;
174
+ }
172
175
}
173
176
} ;
You can’t perform that action at this time.
0 commit comments