x-ignore seems to not work if inner-tag has x-data and x-text both internal to it #4633
-
|
Hi, I'm just few days into using AlpineJS, first of all thanks for all the work. I'm not really sure if my understanding is correct here.. but in my interpretation from the docs, nothing alpine related within a tag should be invoked if it's marked with I was trying simple blocks to understand.. and the piece below renders following I'm utilizing following script tag to make use of it.. If this is a wrong bug report, please close this issue. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
So this is a kind of weird thing, basically, if you don't have Example: https://awesomealpine.com/play?share=-nnl46-TEd37 I'm not sure if it reasonably makes sense to add x-ignore as a root element just to handle ensuring it is seen before trying to initialize the underlying x-data... |
Beta Was this translation helpful? Give feedback.
So this is a kind of weird thing, basically, if you don't have
x-ignoreIN anx-datacontext, it is not considered. If you putx-dataon thex-ignoreelement (or around it) it will be handled correctly...Example: https://awesomealpine.com/play?share=-nnl46-TEd37
I'm not sure if it reasonably makes sense to add x-ignore as a root element just to handle ensuring it is seen before trying to initialize the underlying x-data...