mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 03:00:58 +08:00
fix(ssr): fix global window and document references (#17590)
This commit is contained in:
@ -15,7 +15,7 @@ export function shadow<T extends Element>(el: T): ShadowRoot | T {
|
||||
|
||||
export function iosTransitionAnimation(AnimationC: Animation, navEl: HTMLElement, opts: TransitionOptions): Promise<Animation> {
|
||||
|
||||
const isRTL = document.dir === 'rtl';
|
||||
const isRTL = (navEl.ownerDocument as any).dir === 'rtl';
|
||||
const OFF_RIGHT = isRTL ? '-99.5%' : '99.5%';
|
||||
const OFF_LEFT = isRTL ? '33%' : '-33%';
|
||||
|
||||
|
Reference in New Issue
Block a user