Skip to content

Commit

Permalink
Issue 170. Rangeinput now respects zero initial value
Browse files Browse the repository at this point in the history
  • Loading branch information
tipiirai committed Sep 11, 2010
1 parent 7fa96ac commit 1e243ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/rangeinput/rangeinput.js
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@

function begin() {
init();
self.setValue(conf.value || conf.min);
self.setValue(conf.value !== undefined ? conf.value : conf.min);
}
begin();

Expand Down
2 changes: 1 addition & 1 deletion test/rangeinput/vertical.htm
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
</style>

<div class="ranger"><input class="range" type="range" min="0" max="10" step="1" value="5" /></div>
<div class="ranger"><input class="range" type="range" min="-10" max="10" step="1" value="0" /></div>
<div class="ranger"><input class="range" type="range" min="0" max="1" step="0.1" value="0.2" /></div>
<div class="ranger"><input class="range" type="range" max="100" step="1" /></div>
<div class="ranger"><input class="range" type="range" min="400" max="1000" step="100" value="500" /></div>
Expand Down

0 comments on commit 1e243ad

Please sign in to comment.