Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vinq1911 committed Jan 1, 2020
1 parent d214e95 commit 9639e22
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/OwlCarousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,13 @@ export default class ReactOwlCarousel extends Component<OwlCarouselProps> {
this.create();
}

public componentWillReceiveProps() {
this.destory();
}


public componentDidUpdate() {
this.destory();
const [options, propsWithoutOptions] = filterOptions(this.props);
this.options = options;
this.propsWithoutOptions = propsWithoutOptions;

this.create();
}

Expand Down

0 comments on commit 9639e22

Please sign in to comment.