@@ -33,7 +33,7 @@ function trigger (target, event, process) {
3333function describeFunctions ( formlyElement , inputElement , inputType = 'text' , options ) {
3434 beforeEach ( ( ) => {
3535 data . fields [ 0 ] . type = formlyElement ;
36- data . fields [ 0 ] . templateOptions . type = inputType ;
36+ data . fields [ 0 ] . templateOptions . inputType = inputType ;
3737 if ( typeof options != 'undefined' ) data . fields [ 0 ] . options = options ;
3838 spy = sinon . spy ( ) ;
3939 } ) ;
@@ -103,7 +103,7 @@ function describeFunctions(formlyElement, inputElement, inputType = 'text', opti
103103function describeAttributes ( inputElement , testPlaceholder = true ) {
104104 beforeEach ( ( ) => {
105105 data . fields [ 0 ] . type = inputElement ;
106- data . fields [ 0 ] . templateOptions . type = 'text' ;
106+ data . fields [ 0 ] . templateOptions . inputType = 'text' ;
107107 } ) ;
108108
109109 it ( 'attributes' , ( ) => {
@@ -142,7 +142,7 @@ function describeAttributes(inputElement, testPlaceholder = true){
142142function describeConditional ( inputElement ) {
143143 it ( 'label' , ( done ) => {
144144 data . fields [ 0 ] . type = inputElement ;
145- data . fields [ 0 ] . templateOptions . type = 'text' ;
145+ data . fields [ 0 ] . templateOptions . inputType = 'text' ;
146146 data . fields [ 0 ] . templateOptions . label = '' ;
147147 createForm ( data ) ;
148148
@@ -187,7 +187,7 @@ describe('Bootstrap Field Inputs', () => {
187187 describeAttributes ( 'input' ) ;
188188 it ( 'should have input type as a class' , ( ) => {
189189 data . fields [ 0 ] . type = 'input' ;
190- data . fields [ 0 ] . templateOptions . type = 'text' ;
190+ data . fields [ 0 ] . templateOptions . inputType = 'text' ;
191191 createForm ( data ) ;
192192
193193 let els = vm . $el . querySelectorAll ( '.text' ) ;
@@ -203,7 +203,7 @@ describe('Bootstrap Field Inputs', () => {
203203
204204 it ( 'layout' , ( done ) => {
205205 data . fields [ 0 ] . type = 'input' ;
206- data . fields [ 0 ] . templateOptions . type = 'text' ;
206+ data . fields [ 0 ] . templateOptions . inputType = 'text' ;
207207 createForm ( data ) ;
208208
209209 let inputs = vm . $el . querySelectorAll ( 'input' ) ;
@@ -226,7 +226,7 @@ describe('Bootstrap Field Inputs', () => {
226226
227227 it ( 'adds active and focus classes' , ( done ) => {
228228 data . fields [ 0 ] . type = 'input' ;
229- data . fields [ 0 ] . templateOptions . type = 'text' ;
229+ data . fields [ 0 ] . templateOptions . inputType = 'text' ;
230230 createForm ( data ) ;
231231
232232 expect ( vm . $el . querySelectorAll ( '.formly-has-focus' ) ) . to . be . length ( 0 ) ;
@@ -243,7 +243,7 @@ describe('Bootstrap Field Inputs', () => {
243243
244244 it ( 'defaults to text' , ( ) => {
245245 data . fields [ 0 ] . type = 'input' ;
246- data . fields [ 0 ] . templateOptions . type = undefined ;
246+ data . fields [ 0 ] . templateOptions . inputType = undefined ;
247247 createForm ( data ) ;
248248
249249 let inputs = vm . $el . querySelectorAll ( 'input' ) ;
@@ -363,7 +363,7 @@ describe('Bootstrap Field Inputs', () => {
363363
364364 it ( 'array options' , ( ) => {
365365 data . fields [ 0 ] . type = 'list' ;
366- data . fields [ 0 ] . templateOptions . type = 'checkbox' ;
366+ data . fields [ 0 ] . templateOptions . inputType = 'checkbox' ;
367367 data . fields [ 0 ] . options = [ 'one' , 'two' , 'three' ] ;
368368 createForm ( ) ;
369369
@@ -378,7 +378,7 @@ describe('Bootstrap Field Inputs', () => {
378378
379379 it ( 'object options' , ( ) => {
380380 data . fields [ 0 ] . type = 'list' ;
381- data . fields [ 0 ] . templateOptions . type = 'checkbox'
381+ data . fields [ 0 ] . templateOptions . inputType = 'checkbox'
382382 data . fields [ 0 ] . options = [
383383 { label : 'Foo' , value : 'bar' } ,
384384 { label : 'Bar' , value : 'foo' }
@@ -418,7 +418,7 @@ describe('Bootstrap Field Inputs', () => {
418418
419419 it ( 'multiple values' , ( done ) => {
420420 data . fields [ 0 ] . type = 'list' ;
421- data . fields [ 0 ] . templateOptions . type = 'checkbox' ;
421+ data . fields [ 0 ] . templateOptions . inputType = 'checkbox' ;
422422 data . fields [ 0 ] . options = [ 'one' , 'two' ] ;
423423 createForm ( ) ;
424424
@@ -433,7 +433,7 @@ describe('Bootstrap Field Inputs', () => {
433433
434434 it ( 'single value' , ( done ) => {
435435 data . fields [ 0 ] . type = 'list' ;
436- data . fields [ 0 ] . templateOptions . type = 'radio' ;
436+ data . fields [ 0 ] . templateOptions . inputType = 'radio' ;
437437 data . fields [ 0 ] . options = [ 'one' , 'two' ] ;
438438 createForm ( ) ;
439439
0 commit comments