Commit 1236188
committed
bug #2891 [LiveComponent] Update css to cover more data-loading use cases (Axel Barlet)
This PR was merged into the 2.x branch.
Discussion
----------
[LiveComponent] Update css to cover more data-loading use cases
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| Docs? | no
| License | MIT
This update fixes the default display of loaders in Live Components by extending the CSS selector to also target attributes like `data-loading="action(saveForm)|show"` or `data-loading="delay(500)|show"` or even both combined.
This ensures that loaders remain hidden on initial render or dynamic component insertion, preventing unwanted visual flashes or unwanted displaying of the element that should not be displayed.
Example
Previously, an element like
`<span data-loading="action(save)|show">Loading…</span>`
could be visible in some cases, like loading a new stimulus controller when the component refresh.
It doesn't change the previous behavior, it just covers more cases.
Commits
-------
814af47 [LiveComponent] Update css to cover more data-loading use cases2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
0 commit comments