Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17825] Android: Picker: minDate and maxDate are not respected when setting the value in constructor

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2017-07-11T20:45:40.000+0000
Affected Version/sRelease 3.3.0, Release 3.4.0, Release 3.4.1, Release 4.0.0
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterEwan Harris
AssigneeEric Merriman
Created2014-10-07T01:44:48.000+0000
Updated2017-07-11T20:45:40.000+0000

Description

Description

When a value of a picker is set in .createPicker() minDate and maxDate are not respected and it is possible for the value to be passed these two values *Notes* On iOS the minDate and maxDate values are respected and if the value is set above or below these then it is defaulted to the either the maxDate or minDate. If the value is set using setValue() then it defaults to the highest or lowest it can go. This also occurs in 3.4.0.GA and 3.3.0.GA.

Steps To Reproduce

1. Using the attached app.js build to an Android device or emulator 2. Observe the dates that are set 3. Tap the button and the dates will be set via setValue()

Actual Result

2. The dates will be past the min and max values 3. The dates are changed to the min and max

Expected Result

2. The dates should be the same as the min and max 3. The dates are changed to the min and max

Attachments

FileDateSize
app.js2014-10-07T16:06:53.000+00001204

Comments

  1. Lee Morris 2017-07-11

    Verifying that has been fixed as I am unable to reproduce this issue with the following environment; Pixel (7.1) Studio 4.9.0.201705302345 Ti SDK 6.1.1 GA Appc NPM 4.2.9 Appc CLI 6.2.2 Ti CLI 5.0.14 Alloy 1.9.11 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131

JSON Source