var dayFactory = new NumberFactory(1,31,1, {});
Picker.initialize({:title=>title, :pattern=>[dayFactory], :defaults=> [dayFactory.getIndex(21).toNumber()] });
The picker is not initialized with 21 (I tried also to write directly 21 to the defaults array) but shows an at least 3 digits value ( I can't read the entire string since the font is too large, but it's definitely string with more than two characters although my defined range is 1 to 31).
If I omit the default, the picker works as expected. What is wrong with my implementaion? Any thougts?