From c6095d64253a2494a6647f0be58256be5a572643 Mon Sep 17 00:00:00 2001 From: Matthew Taylor Date: Fri, 23 Oct 2015 14:47:49 -0400 Subject: [PATCH] separate out arrows var from settings object seems to be returning false when it shouldn't. When I was testing before it appears I was getting a cached js, so it didn't actually work. --- src/components/carousel/carousel.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/carousel/carousel.jsx b/src/components/carousel/carousel.jsx index 07e4ed417..e7dc7c382 100644 --- a/src/components/carousel/carousel.jsx +++ b/src/components/carousel/carousel.jsx @@ -23,7 +23,6 @@ var Carousel = React.createClass({ render: function () { var settings = this.props.settings || {}; defaults(settings, { - arrows: this.props.items.length > settings.slidesToShow, dots: false, infinite: false, lazyLoad: true, @@ -31,9 +30,10 @@ var Carousel = React.createClass({ slidesToScroll: 5, variableWidth: true }); + var arrows = this.props.items.length > settings.slidesToShow; return ( - + {this.props.items.map(function (item) { var href = ''; switch (item.type) {