This repository was archived by the owner on May 25, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 626626 this . _on ( fileUploadButtonBar . find ( '.start' ) , {
627627 click : function ( e ) {
628628 e . preventDefault ( ) ;
629- filesList . find ( '.start' ) . click ( ) ;
629+ filesList . find ( '.start' ) . trigger ( 'click' ) ;
630630 }
631631 } ) ;
632632 this . _on ( fileUploadButtonBar . find ( '.cancel' ) , {
633633 click : function ( e ) {
634634 e . preventDefault ( ) ;
635- filesList . find ( '.cancel' ) . click ( ) ;
635+ filesList . find ( '.cancel' ) . trigger ( 'click' ) ;
636636 }
637637 } ) ;
638638 this . _on ( fileUploadButtonBar . find ( '.delete' ) , {
642642 . find ( '.toggle:checked' )
643643 . closest ( '.template-download' )
644644 . find ( '.delete' )
645- . click ( ) ;
645+ . trigger ( 'click' ) ;
646646 fileUploadButtonBar . find ( '.toggle' ) . prop ( 'checked' , false ) ;
647647 }
648648 } ) ;
Original file line number Diff line number Diff line change 11771177 // If the fileInput had focus before it was detached,
11781178 // restore focus to the inputClone.
11791179 if ( restoreFocus ) {
1180- inputClone . focus ( ) ;
1180+ inputClone . trigger ( 'focus' ) ;
11811181 }
11821182 // Avoid memory leaks with the detached file input:
11831183 $ . cleanData ( input . off ( 'remove' ) ) ;
You can’t perform that action at this time.
0 commit comments