Skip to content

Commit

Permalink
Merge pull request #541 from RyanCoulsonCA/fix-191
Browse files Browse the repository at this point in the history
fix focus issue when tabbing through slideshow
  • Loading branch information
yileifeng authored Feb 7, 2025
2 parents 759abb1 + f3e3034 commit 9cbd5c1
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions src/components/panels/slideshow-panel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,19 @@
:touchDrag="false"
>
<slide v-for="(panelConfig, index) in config.items" :key="index" :index="index">
<panel
:config="panelConfig"
:configFileStructure="configFileStructure"
:slideIdx="slideIdx"
:isSlideshowItem="true"
:class="panelConfig.type === 'map' ? 'map-carousel-item' : 'carousel-item'"
></panel>
<template #default="{ isActive }">
<panel
:config="panelConfig"
:configFileStructure="configFileStructure"
:slideIdx="slideIdx"
:isSlideshowItem="true"
:class="{
'map-carousel-item': panelConfig.type === 'map',
'carousel-item': panelConfig.type !== 'map',
hidden: !isActive
}"
></panel>
</template>
</slide>

<template #addons>
Expand Down

0 comments on commit 9cbd5c1

Please sign in to comment.