@@ -85,8 +85,8 @@ function addFormlyNgModelAttrsManipulator(formlyConfig, $interpolate, formlyWarn
85
85
// I realize this looks backwards, but it's right, trust me...
86
86
attrName = val . value ;
87
87
attrVal = name ;
88
- } else if ( val . expression && inTo ) {
89
- attrName = val . expression ;
88
+ } else if ( val . statement && inTo ) {
89
+ attrName = val . statement ;
90
90
if ( angular . isString ( to [ name ] ) ) {
91
91
attrVal = `$eval(${ ref } )` ;
92
92
} else if ( angular . isFunction ( to [ name ] ) ) {
@@ -197,7 +197,7 @@ function addFormlyNgModelAttrsManipulator(formlyConfig, $interpolate, formlyWarn
197
197
const boundOnly = [ ] ;
198
198
const bothBooleanAndBound = [ 'required' , 'disabled' ] ;
199
199
const bothAttributeAndBound = [ 'pattern' , 'minlength' ] ;
200
- const expressionOnly = [ 'change' , 'keydown' , 'keyup' , 'keypress' , 'click' , 'focus' , 'blur' ] ;
200
+ const statementOnly = [ 'change' , 'keydown' , 'keyup' , 'keypress' , 'click' , 'focus' , 'blur' ] ;
201
201
const attributeOnly = [ 'placeholder' , 'min' , 'max' , 'tabindex' , 'type' ] ;
202
202
if ( formlyConfig . extras . ngModelAttrsManipulatorPreferUnbound ) {
203
203
bothAttributeAndBound . push ( 'maxlength' ) ;
@@ -217,9 +217,9 @@ function addFormlyNgModelAttrsManipulator(formlyConfig, $interpolate, formlyWarn
217
217
ngModelAttributes [ item ] = { attribute : item , bound : 'ng-' + item } ;
218
218
} ) ;
219
219
220
- angular . forEach ( expressionOnly , item => {
220
+ angular . forEach ( statementOnly , item => {
221
221
const propName = 'on' + item . substr ( 0 , 1 ) . toUpperCase ( ) + item . substr ( 1 ) ;
222
- ngModelAttributes [ propName ] = { expression : 'ng-' + item } ;
222
+ ngModelAttributes [ propName ] = { statement : 'ng-' + item } ;
223
223
} ) ;
224
224
225
225
angular . forEach ( attributeOnly , item => {
0 commit comments