Replies: 1 comment
-
It does work when doesn't work <template x-teleport="body">
<div x-cloak x-show="showModal">
{{ $content }}
</div>
</template> works <template x-teleport="body">
<div x-show="showModal">
<div x-cloak>
{{ $content }}
</div>
</div>
</template> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Livewire version
v3.4.11 and v3.4.12
Laravel version
v10 and v11
Which PHP version are you using?
PHP 8.3
Steps To Reproduce
template
withx-teleport
, where the root element of the template has thex-cloak
attribute setx-cloak
attribute is added again to the root element of thetemplate
, hiding the content of the template againRepository or Wirebox URL
https://github.com/jnstr/lrvl-teleport/tree/main
Additional information
This issue first occured
v3.4.11
, it worked fine before, rollback tov3.4.10
fixed the issue. It seems to work fine without the Blade component.When debbuging this, I noticed that the
toAttributes
containsx-cloak
(https://github.com/alpinejs/alpine/blob/60cf5a841acd5aab3aa3c8b1aad9b688c14c2547/packages/morph/src/morph.js#L94), so it looks like a combination of Livewire and Alpine in a particular edge casePlease confirm (incomplete submissions will not be addressed)
Beta Was this translation helpful? Give feedback.
All reactions