Skip to content
Snippets Groups Projects
Commit 40424d97 authored by Glenn Vorhes's avatar Glenn Vorhes
Browse files

fix slider bug

parent 4f9e5631
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,9 @@ var Slider = (function (_super) {
this.step = parseFloat(this.el.step);
this.startButton = document.getElementById(this.startUid);
this.stopButton = document.getElementById(this.stopUid);
this.stopButton.style.display = 'none';
if (this.props.animate) {
this.stopButton.style.display = 'none';
}
this.previousButton = document.getElementById(this.previousUid);
this.nextButton = document.getElementById(this.nextUid);
this.intervalSelect = document.getElementById(this.intervalUid);
......
This diff is collapsed.
......@@ -52,7 +52,9 @@ export class Slider extends React.Component<iSlider, null> {
this.step = parseFloat(this.el.step);
this.startButton = document.getElementById(this.startUid) as HTMLButtonElement;
this.stopButton = document.getElementById(this.stopUid) as HTMLButtonElement;
this.stopButton.style.display = 'none';
if (this.props.animate){
this.stopButton.style.display = 'none';
}
this.previousButton = document.getElementById(this.previousUid) as HTMLButtonElement;
this.nextButton = document.getElementById(this.nextUid) as HTMLButtonElement;
this.intervalSelect = document.getElementById(this.intervalUid) as HTMLSelectElement;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment