mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
fix(ssr): fix global window and document references (#17590)
This commit is contained in:
@ -155,7 +155,7 @@ export class Menu implements ComponentInterface, MenuI {
|
||||
const el = this.el;
|
||||
const parent = el.parentNode as any;
|
||||
const content = this.contentId !== undefined
|
||||
? document.getElementById(this.contentId)
|
||||
? this.doc.getElementById(this.contentId)
|
||||
: parent && parent.querySelector && parent.querySelector('[main]');
|
||||
|
||||
if (!content || !content.tagName) {
|
||||
|
Reference in New Issue
Block a user