Skip to content

Commit

Permalink
fix(slider): Set default step value directly when initialize (#1173) (#…
Browse files Browse the repository at this point in the history
…1245)

Closes #1173
  • Loading branch information
archnode authored and yeelan0319 committed Sep 7, 2017
1 parent 37d7f36 commit 148f510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mdc-slider/foundation.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export default class MDCSliderFoundation extends MDCFoundation {
this.layout();
// At last step, provide a reasonable default value to discrete slider
if (this.isDiscrete_ && this.getStep() == 0) {
this.setStep(1);
this.step_ = 1;
}
}

Expand Down

0 comments on commit 148f510

Please sign in to comment.