fix: x-data sans window. prefix + suppression x-for inutile
- Changé x-data="window._wsInitData" → x-data="_wsInitData" (Alpine évalue mieux sans le préfixe global) - Supprimé <template x-for="node in flatTree"> dans une table cachée (x-show="false", jamais visible mais Alpine l'évaluait quand même)
This commit is contained in:
@@ -1873,7 +1873,7 @@ console.log('FLOWDECK v2.4.6 — IIFE done, _wsInitData keys:', Object.keys(wind
|
|||||||
</script>
|
</script>
|
||||||
<script>console.log('FLOWDECK v2.4.6 — ws-split about to render, _wsInitData exists:', typeof window._wsInitData !== 'undefined');</script>
|
<script>console.log('FLOWDECK v2.4.6 — ws-split about to render, _wsInitData exists:', typeof window._wsInitData !== 'undefined');</script>
|
||||||
|
|
||||||
<div class="ws-split" x-data="window._wsInitData"
|
<div class="ws-split" x-data="_wsInitData"
|
||||||
@dragover.prevent="onDragOver($event)"
|
@dragover.prevent="onDragOver($event)"
|
||||||
@dragleave="onDragLeave($event)"
|
@dragleave="onDragLeave($event)"
|
||||||
@drop.prevent="onDrop($event)"
|
@drop.prevent="onDrop($event)"
|
||||||
@@ -2240,9 +2240,7 @@ console.log('FLOWDECK v2.4.6 — IIFE done, _wsInitData keys:', Object.keys(wind
|
|||||||
<!-- Old table view kept for backward compat, hidden -->
|
<!-- Old table view kept for backward compat, hidden -->
|
||||||
<table class="ws-table" x-show="false" style="display:none">
|
<table class="ws-table" x-show="false" style="display:none">
|
||||||
<thead><tr><th>Name</th><th>Type</th><th>Size</th></tr></thead>
|
<thead><tr><th>Name</th><th>Type</th><th>Size</th></tr></thead>
|
||||||
<tbody><template x-for="node in flatTree" :key="'t'+node.id">
|
<tbody></tbody>
|
||||||
<tr><td x-text="node.name"></td></tr>
|
|
||||||
</template></tbody>
|
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<!-- Empty -->
|
<!-- Empty -->
|
||||||
|
|||||||
Reference in New Issue
Block a user