Skip to content

Releases: YIZHUANG/react-multi-carousel

2.5.4

01 Apr 09:39
47c84c0
Compare
Choose a tag to compare

Changes

  • Add aria-label on dots #144

2.5.3

15 Mar 14:50
Compare
Choose a tag to compare

Changes

  • Fixed resizing resets current slide #135

2.5.0

18 Dec 13:40
Compare
Choose a tag to compare

Changes

  • Remove left margin when not enough children #111
  • Fixed two active dots #118

2.4.2

18 Nov 14:29
Compare
Choose a tag to compare

Changes

  • Fixed runtime error when there's not enough children and showDots prop is true #107

2.4.1

18 Nov 11:18
Compare
Choose a tag to compare

Changes

  • better handle on children length changes back and forth-> #102 and # #101
  • hide dots if there's not enough children #103

Credits

Huge thanks to @abhinavdalal-iconnect and @benhodgson87 for helping!

2.3.0

16 Oct 16:20
Compare
Choose a tag to compare

Changes

  • Added option to skip beforeChange and afterChange callbacks for goToSlide #75
  • Add aria-label to arrows buttons #85
  • Add Eslint. #69

2.2.7

02 Oct 20:28
Compare
Choose a tag to compare
  1. Allow button group to be render out side. #65
  2. Disable infinite (and centerMode) when totalItems < slidesToShow #63

Changed naming of partialVisibilityGutter and fixed keyboad event listener not added

18 Aug 20:33
Compare
Choose a tag to compare

Patches

  • Change naming of "partialVisibilityGutter" to "paritialVisibilityGutter" e69474f
  • Fixed keyboard event listener not added after it has been removed ecd4f25

Change render method in infinite mode.

28 Jul 14:57
Compare
Choose a tag to compare

Commit: e865fab

Issue: #48

Previously clones are only set once during the entire life cyle as the following:

componentDidMount(){
  this.setState({ clones: whatever });
}
render(){
  return (
    <>
     {this.state.clones.map.....}
    </>
    )
  }

Using such approach works, but does not allow for advanced customization. For example:

const MyComponent = () => {
 const [anyState, setAnyState] = useState(null);
return (
   <Carousel
    infinite={true}
    beforeChange={() => setAnyState('anything')}
   >
    <CarouselItem anyState={anyState} /> 
    // anyState will be null as always because Carousel item is not re-rendering. 
  </Carousel>
  )
}

This commit fixes the above.

Added styled components support

12 Jul 11:09
Compare
Choose a tag to compare

By passing className as a prop.
#42

Credits

Big thanks to @tpinne