diff --git a/src/plugins/fragment/README.md b/src/plugins/fragment/README.md index e073cbb..450dafc 100644 --- a/src/plugins/fragment/README.md +++ b/src/plugins/fragment/README.md @@ -93,6 +93,26 @@ multiple sibling elements for each iteration without wrapping them: ``` 🚀 [Live demo | Alpine.js x-fragment: Multiple root elements with x-for](https://jsfiddle.net/rameel/201rmntc/) +> [!NOTE] +> Alpine's `x-for` does not keep in order the content rendered by templates nested in its items, +> such as `x-for` directly in `x-for` or a template directly in `x-if` +> ([alpinejs/alpine#4911](https://github.com/alpinejs/alpine/issues/4911)). +> Inside `x-for`, the same applies to `x-if`, `x-for` or `x-fragment` placed directly in `x-fragment`, +> and to `x-fragment` placed directly in `x-if`. Put the nested templates inside an element, +> and use `x-when` instead of `x-if` with `x-fragment`: +> ```html +> +> ``` + ## Source code You can find the source code for this plugin on GitHub: diff --git a/src/plugins/match/README.md b/src/plugins/match/README.md index f5e38cf..73676f7 100644 --- a/src/plugins/match/README.md +++ b/src/plugins/match/README.md @@ -104,6 +104,14 @@ Here's an example demonstrating the use of `