Skip to content

Commit 0f0987a

Browse files
committed
fix: condition display of teleport instead of the legend slot
1 parent 5486e45 commit 0f0987a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/components/Compare/FacetScatterChart.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,13 +369,14 @@ onMounted(async () => {
369369
</template>
370370

371371
<!-- Custom legend -->
372-
<template #legend="{ legend }" v-if="readyTeleport">
372+
<template #legend="{ legend }">
373373
<div
374374
id="compare-scatter-legend-inner"
375375
:role="isMobile ? 'group' : undefined"
376376
:aria-labelledby="isMobile ? 'scatter-chart-legend-packages' : undefined"
377377
></div>
378378
<Teleport
379+
v-if="readyTeleport"
379380
:to="isMobile ? '#compare-scatter-legend-inner' : '#compare-scatter-legend'"
380381
>
381382
<ul

0 commit comments

Comments
 (0)