File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " simple-stack-query " : patch
3+ ---
4+
5+ fixes issue where ` $.ready ` does not fire in Safari or Firefox when using Astro view transitions with ` fallback="none" `
Original file line number Diff line number Diff line change @@ -25,7 +25,10 @@ export function create$(scope: typeof scopeFn) {
2525 return [ ...document . querySelectorAll ( selector ) ] ;
2626 } ,
2727 ready ( callback : ( ) => MaybePromise < undefined | ( ( ) => void ) > ) {
28- if ( transitionEnabledOnThisPage ( ) ) {
28+ const fallback = document
29+ . querySelector ( 'meta[name="astro-view-transitions-fallback"]' )
30+ ?. getAttribute ( "content" ) ;
31+ if ( transitionEnabledOnThisPage ( ) && fallback !== "none" ) {
2932 let cleanup : ( ( ) => void ) | undefined ;
3033
3134 document . addEventListener ( "astro:page-load" , async ( ) => {
You can’t perform that action at this time.
0 commit comments