@@ -353,7 +353,7 @@ describe('DateInput', () => {
353
353
} ) ;
354
354
355
355
it ( 'jumps to the next field when right arrow is pressed' , ( ) => {
356
- const { container } = render ( < DateInput { ...defaultProps } /> , { attachTo : container } ) ;
356
+ const { container } = render ( < DateInput { ...defaultProps } /> ) ;
357
357
358
358
const customInputs = container . querySelectorAll ( 'input[data-input]' ) ;
359
359
const dayInput = customInputs [ 0 ] ;
@@ -370,7 +370,7 @@ describe('DateInput', () => {
370
370
} ) ;
371
371
372
372
it ( 'jumps to the next field when separator key is pressed' , ( ) => {
373
- const { container } = render ( < DateInput { ...defaultProps } /> , { attachTo : container } ) ;
373
+ const { container } = render ( < DateInput { ...defaultProps } /> ) ;
374
374
375
375
const customInputs = container . querySelectorAll ( 'input[data-input]' ) ;
376
376
const dayInput = customInputs [ 0 ] ;
@@ -389,7 +389,7 @@ describe('DateInput', () => {
389
389
} ) ;
390
390
391
391
it ( 'does not jump to the next field when right arrow is pressed when the last input is focused' , ( ) => {
392
- const { container } = render ( < DateInput { ...defaultProps } /> , { attachTo : container } ) ;
392
+ const { container } = render ( < DateInput { ...defaultProps } /> ) ;
393
393
394
394
const customInputs = container . querySelectorAll ( 'input[data-input]' ) ;
395
395
const yearInput = customInputs [ 2 ] ;
@@ -405,7 +405,7 @@ describe('DateInput', () => {
405
405
} ) ;
406
406
407
407
it ( 'jumps to the previous field when left arrow is pressed' , ( ) => {
408
- const { container } = render ( < DateInput { ...defaultProps } /> , { attachTo : container } ) ;
408
+ const { container } = render ( < DateInput { ...defaultProps } /> ) ;
409
409
410
410
const customInputs = container . querySelectorAll ( 'input[data-input]' ) ;
411
411
const dayInput = customInputs [ 0 ] ;
@@ -422,7 +422,7 @@ describe('DateInput', () => {
422
422
} ) ;
423
423
424
424
it ( 'does not jump to the previous field when left arrow is pressed when the first input is focused' , ( ) => {
425
- const { container } = render ( < DateInput { ...defaultProps } /> , { attachTo : container } ) ;
425
+ const { container } = render ( < DateInput { ...defaultProps } /> ) ;
426
426
427
427
const customInputs = container . querySelectorAll ( 'input[data-input]' ) ;
428
428
const dayInput = customInputs [ 0 ] ;
@@ -438,7 +438,7 @@ describe('DateInput', () => {
438
438
} ) ;
439
439
440
440
it ( "jumps to the next field when a value which can't be extended to another valid value is entered" , ( ) => {
441
- const { container } = render ( < DateInput { ...defaultProps } /> , { attachTo : container } ) ;
441
+ const { container } = render ( < DateInput { ...defaultProps } /> ) ;
442
442
443
443
const customInputs = container . querySelectorAll ( 'input[data-input]' ) ;
444
444
const dayInput = customInputs [ 0 ] ;
@@ -453,7 +453,7 @@ describe('DateInput', () => {
453
453
} ) ;
454
454
455
455
it ( 'jumps to the next field when a value as long as the length of maximum value is entered' , ( ) => {
456
- const { container } = render ( < DateInput { ...defaultProps } /> , { attachTo : container } ) ;
456
+ const { container } = render ( < DateInput { ...defaultProps } /> ) ;
457
457
458
458
const customInputs = container . querySelectorAll ( 'input[data-input]' ) ;
459
459
const dayInput = customInputs [ 0 ] ;
@@ -468,7 +468,7 @@ describe('DateInput', () => {
468
468
} ) ;
469
469
470
470
it ( 'does not jump the next field when a value which can be extended to another valid value is entered' , ( ) => {
471
- const { container } = render ( < DateInput { ...defaultProps } /> , { attachTo : container } ) ;
471
+ const { container } = render ( < DateInput { ...defaultProps } /> ) ;
472
472
473
473
const customInputs = container . querySelectorAll ( 'input[data-input]' ) ;
474
474
const dayInput = customInputs [ 0 ] ;
0 commit comments