mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 02:31:34 +08:00
fix(ssr): fix global window and document references (#17590)
This commit is contained in:
@ -120,7 +120,7 @@ export class Button implements ComponentInterface {
|
||||
if (form) {
|
||||
ev.preventDefault();
|
||||
|
||||
const fakeButton = document.createElement('button');
|
||||
const fakeButton = this.win.document.createElement('button');
|
||||
fakeButton.type = this.type;
|
||||
fakeButton.style.display = 'none';
|
||||
form.appendChild(fakeButton);
|
||||
|
Reference in New Issue
Block a user