From 733d5d6426cda57ac83e545c1890ace2e4e4a2b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20Hi=C5=BEa?= Date: Fri, 14 Jul 2017 10:34:24 +0200 Subject: [PATCH] FIX: support rtl option --- components/OwlCarousel.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/OwlCarousel.jsx b/components/OwlCarousel.jsx index abd92ea..204b0ac 100644 --- a/components/OwlCarousel.jsx +++ b/components/OwlCarousel.jsx @@ -47,6 +47,7 @@ const Owl_Carousel_Options = { responsive: PropTypes.object, responsiveRefreshRate: PropTypes.number, responsiveBaseElement: PropTypes.element, + rtl: PropTypes.bool, video: PropTypes.bool, videoHeight: PropTypes.oneOfType([PropTypes.number, PropTypes.bool]), videoWidth: PropTypes.oneOfType([PropTypes.number, PropTypes.bool]), @@ -99,7 +100,7 @@ const Owl_Carousel_Options = { class OwlCarousel extends Component { constructor(props, context) { super(props, context); - + this.next = this.next.bind(this); this.prev = this.prev.bind(this); this.to = this.to.bind(this); @@ -216,7 +217,7 @@ class OwlCarousel extends Component { } = this.propsWithoutOptions; return ( -
this.inst = inst} {...props}