Skip to content

Commit a005d2f

Browse files
committed
bug #1079 [LiveComponent] Use display:revert for data-loading style (norkunas)
This PR was merged into the 2.x branch. Discussion ---------- [LiveComponent] Use `display:revert` for `data-loading` style | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Tickets | N/A | License | MIT Using `display:inline-block` breaks the inner workings if for example `data-loading` was used on `<tr>` element, so the table row contents are incorrectly displayed. Commits ------- be4f285 [LiveComponent] Use `display:revert` for `data-loading` style
2 parents 9a8f599 + be4f285 commit a005d2f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/LiveComponent/assets/dist/live_controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2380,7 +2380,7 @@ class LoadingPlugin {
23802380
return loadingDirectives;
23812381
}
23822382
showElement(element) {
2383-
element.style.display = 'inline-block';
2383+
element.style.display = 'revert';
23842384
}
23852385
hideElement(element) {
23862386
element.style.display = 'none';

src/LiveComponent/assets/src/Component/plugins/LoadingPlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ export default class implements PluginInterface {
173173
}
174174

175175
private showElement(element: HTMLElement|SVGElement) {
176-
element.style.display = 'inline-block';
176+
element.style.display = 'revert';
177177
}
178178

179179
private hideElement(element: HTMLElement|SVGElement) {

0 commit comments

Comments
 (0)