Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-25897

iOS: Ti.UI.iOS.Stepper handles "value" boundaries incorrect

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 6.3.0, Release 7.1.0
    • Fix Version/s: Release 7.3.0
    • Component/s: iOS
    • Labels:
    • Story Points:
      2
    • Sprint:
      2018 Sprint 10 SDK

      Description

      We handle allowed values for our Stepper UI element with:

        if (newValue < [[self stepper] maximumValue] && newValue > [[self stepper] minimumValue]) {
          [[self stepper] setValue:newValue];
        } else {
          NSNumber *currentValue = [NSNumber numberWithDouble:[[self stepper] value]];
          [self.proxy replaceValue:currentValue forKey:@"value" notification:NO];
          NSLog(@"[WARN] The value passed in must be smaller than the maximum and bigger than the minimum stepper values");
        }
      

      Which is wrong. It should be newValue <= maximum && newValue >= minimum.

        Attachments

          Activity

            People

            • Assignee:
              vijaysingh Vijay Singh
              Reporter:
              hknoechel Hans Knöchel
              Reviewer:
              Hans Knöchel
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-6259
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code