File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -752,19 +752,21 @@ const overlayAnimation = async (
752752 animation . duration ( 0 ) ;
753753 }
754754
755- aniRoot . setAttribute ( 'aria-hidden' , 'true' ) ;
755+ animation . beforeAddWrite ( ( ) => {
756+ console . log ( 'beforeAddWrite' ) ;
757+ aniRoot . setAttribute ( 'aria-hidden' , 'true' ) ;
756758
757- if ( overlay . keyboardClose ) {
758- animation . beforeAddWrite ( ( ) => {
759+ if ( overlay . keyboardClose ) {
759760 const activeElement = baseEl . ownerDocument ! . activeElement as HTMLElement ;
760761 if ( activeElement ?. matches ( 'input,ion-input, ion-textarea' ) ) {
761762 activeElement . blur ( ) ;
762763 }
763- } ) ;
764- }
764+ }
765+ } ) ;
765766
766767 animation . afterAddWrite ( ( ) => {
767768 aniRoot . removeAttribute ( 'aria-hidden' ) ;
769+ console . log ( 'afterAddWrite' ) ;
768770 } ) ;
769771
770772 const activeAni = activeAnimations . get ( overlay ) || [ ] ;
You can’t perform that action at this time.
0 commit comments