You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use Blazor Server Render, the following code can work properly.
@rendermode@(newInteractiveServerRenderMode(prerender:false))
<divx-data="{ open : false }">
<buttonx-on:click="open = !open">Open</button>
<div>
<divx-show="open">
<div>
Modal Content
</div>
<divx-ignore>
<buttonx-cloak@onclick="Click">
OK (Blazor handle this event)
</button>
</div>
</div>
</template>
</div>
The x-ignore have ignored the elements handled by Blazor. It's working very well.
When I used (i need x-teleport="body") , problems occurred.
@rendermode@(newInteractiveServerRenderMode(prerender:false))
<divx-data="{ open : false }">
<buttonx-on:click="open = !open">Open</button>
<template>
<divx-show="open">
<div>
Modal Content
</div>
<divx-ignore>
<buttonx-cloak@onclick="Click">
OK (Blazor handle this event)
</button>
</div>
</div>
</template>
</div>
alpinejs:5 Uncaught TypeError: Cannot set properties of null (setting '_x_teleportBack')
at Function. (alpinejs:5:27023)
at r (alpinejs:5:2323)
at n (alpinejs:5:2353)
at fr (alpinejs:5:2363)
at S (alpinejs:5:5131)
at alpinejs:5:4396
at alpinejs:1:2721
at Array.forEach ()
at MutationObserver.mt (alpinejs:1:2710)
I have only a superficial understanding of the principles of Alpine. I'm not sure how to handle this situation. Maybe it's a bug, or perhaps there are alternative solutions. I would appreciate your assistance.
Thank you
The text was updated successfully, but these errors were encountered:
When I use Blazor Server Render, the following code can work properly.
The
x-ignore
have ignored the elements handled by Blazor. It's working very well.When I used (i need x-teleport="body") , problems occurred.
alpinejs:5 Uncaught TypeError: Cannot set properties of null (setting '_x_teleportBack')
at Function. (alpinejs:5:27023)
at r (alpinejs:5:2323)
at n (alpinejs:5:2353)
at fr (alpinejs:5:2363)
at S (alpinejs:5:5131)
at alpinejs:5:4396
at alpinejs:1:2721
at Array.forEach ()
at MutationObserver.mt (alpinejs:1:2710)
I have only a superficial understanding of the principles of Alpine. I'm not sure how to handle this situation. Maybe it's a bug, or perhaps there are alternative solutions. I would appreciate your assistance.
Thank you
The text was updated successfully, but these errors were encountered: