Skip to content

Commit

Permalink
fix(slides): allow auto to be passed
Browse files Browse the repository at this point in the history
Closes #10000. Closes #10037
  • Loading branch information
lmeireles authored and mhartington committed Jan 17, 2017
1 parent 60adf7b commit e56028e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/slides/slides.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,9 +353,9 @@ export class Slides extends Ion {
return this._slidesPerView;
}
set slidesPerView(val: any) {
this._slidesPerView = parseInt(val, 10);
this._slidesPerView = val === 'auto' ? 'auto' : parseInt(val, 10);
}
private _slidesPerView = 1;
private _slidesPerView: number|string = 1;

/**
* @private
Expand Down

0 comments on commit e56028e

Please sign in to comment.