Skip to content

Inner HTML replace does not initialize x-data? #4439

Answered by ekwoka
globglarb asked this question in 1. Help
Discussion options

You must be logged in to vote

Nope, this is working exactly as expected.

The issue here is that the same click event that triggers the html swap also ends up triggering the click outside handler.

So it's show, then immediately set to false.

Anything else would cause an error to show and the element would be visible.

You can see this here: https://awesomealpine.com/play?share=jDIUvH3lN68-

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@globglarb
Comment options

Answer selected by globglarb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants