Skip to content

Commit

Permalink
refactor(esl-carousel): fix default renderer uninitializer
Browse files Browse the repository at this point in the history
  • Loading branch information
ala-n committed Apr 7, 2024
1 parent bdfea06 commit 20d337d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions site/views/draft/slide-carousel.njk
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ icon: examples/carousel.svg
<div class="row flex-column" esl-carousel-container>
<button type="button" esl-carousel-nav="group:prev"></button>

<esl-carousel esl-carousel-touch type="slide">
<esl-carousel esl-carousel-touch="swipe" type="css">
<div data-slides-area>
<!-- CAROUSEL-ITEM -->
{% for i in range(0, 5) %}
Expand All @@ -68,7 +68,7 @@ icon: examples/carousel.svg
<div class="row flex-column" esl-carousel-container>
<button type="button" esl-carousel-nav="group:prev"></button>

<esl-carousel class="vertical-carousel" esl-carousel-touch type="slide">
<esl-carousel esl-carousel-touch type="slide">
<div data-slides-area>
<!-- CAROUSEL-ITEM -->
{% for i in range(0, 5) %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ export class ESLDefaultCarouselRenderer extends ESLCarouselRenderer {
el.style.removeProperty('min-height');
});
this.$area.style.removeProperty('transform');
this.setTransformOffset(0);
this.$carousel.toggleAttribute('animating', false);
}

Expand Down

0 comments on commit 20d337d

Please sign in to comment.