Icekeith / mobiscroll

Automatically exported from code.google.com/p/mobiscroll
0 stars 0 forks source link

First selected value does not work correctly with just one wheel #76

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

To reproduce the problem from the subject line:

change the demo example to use just one wheel:

var group = {};
var wheels = [group];
var wheel = {};
for (var j = 0; j < 100; j++) {
wheel[j] = j;
}
group['Fruit'] = wheel;

$('#custom').scroller({
width: 400,
wheels: wheels
});
2: for the input field set the default value to empty:

<div data-role="fieldcontain">
    <label for="custom">Custom (Fruits :D)</label>
    <input type="text" name="custom" id="custom" class="mobiscroll" value="" />
</div>
Click on the input (do not scroll), and then just click set. In the input, the 
value -1 will be set. If you repeat the process, you will get -2, -3, etc.

I'm expecting it to be 0, the first and also selected element from the wheel.

Thanks,
Ioana

Original issue reported on code.google.com by diosla...@gmail.com on 26 Mar 2012 at 1:53

GoogleCodeExporter commented 8 years ago
Fixed in 1.6

Original comment by diosla...@gmail.com on 29 Mar 2012 at 1:06