File tree 2 files changed +0
-20
lines changed
2 files changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -468,23 +468,6 @@ class Card {
468
468
}
469
469
}
470
470
471
- /**
472
- * Set focus to a given card.
473
- * @param {boolean } force If true, don't wait for transition.
474
- */
475
- setCardFocus ( force ) {
476
- if ( force === true ) {
477
- this . $cardTextArea . focus ( ) ;
478
- }
479
- else {
480
- // Wait for transition, then set focus
481
- const $card = this . getDOM ( ) ;
482
- $card . one ( 'transitionend' , ( ) => {
483
- $card . focus ( )
484
- } ) ;
485
- }
486
- }
487
-
488
471
/**
489
472
* Stop audio of card.
490
473
*/
Original file line number Diff line number Diff line change @@ -608,7 +608,6 @@ class Dialogcards extends H5P.EventDispatcher {
608
608
609
609
this . currentCardId = targetPosition ;
610
610
this . updateNavigation ( ) ;
611
- this . cards [ this . currentCardId ] . setCardFocus ( ) ;
612
611
} ;
613
612
614
613
/**
@@ -642,7 +641,6 @@ class Dialogcards extends H5P.EventDispatcher {
642
641
this . createDOM ( ) ;
643
642
644
643
this . updateNavigation ( ) ;
645
- this . cards [ this . currentCardId ] . setCardFocus ( true ) ;
646
644
647
645
this . trigger ( 'resize' ) ;
648
646
} ;
@@ -672,7 +670,6 @@ class Dialogcards extends H5P.EventDispatcher {
672
670
this . showAllAudio ( ) ;
673
671
674
672
this . cards [ this . currentCardId ] . resizeOverflowingText ( ) ;
675
- this . cards [ this . currentCardId ] . setCardFocus ( ) ;
676
673
} ;
677
674
678
675
/**
You can’t perform that action at this time.
0 commit comments