[ https://issues.apache.org/jira/browse/FLEX-33288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13531117#comment-13531117 ]
Carol Frampton commented on FLEX-33288: --------------------------------------- Your code sets the NumericStepper to <s:NumericStepper id="numericStepper" minimum="100" maximum="999" valueCommit="numericStepper_valueCommitHandler(event)" change="numericStepper_changeHandler(event)"/> The bug is the Spark NumericStepper should not let you set numericStepper.value = NaN since that is outside of specified range of 100-999. If you change your code to use the mx:NumericStepper you will see it correctly does not allow this (internally it converts NaN to 0 and detects that is not within your range). Note that the typed value is not committed until you press the Enter key, remove focus from the component, step the NumericStepper by pressing an arrow button or by calling the changeValueByStep() method. In your example you input 101 and then clicked the stepper so it was trying to increment the last committed value which was NaN and at this point it detected that NaN was outside of the valid range so it did not step the value. > Numeric Stepper value once NaN does not change to any number user sets or > increments > ------------------------------------------------------------------------------------ > > Key: FLEX-33288 > URL: https://issues.apache.org/jira/browse/FLEX-33288 > Project: Apache Flex > Issue Type: Bug > Components: Spark: NumericStepper > Affects Versions: Adobe Flex SDK 4.6 (Release) > Environment: all > Reporter: K Vikas Chandran > Priority: Minor > Labels: NaN, numeric, numericstepper, stepper > Fix For: Adobe Flex SDK 4.6 (Release) > > Attachments: SampleFromClient.mxml, workAround.mxml > > > Problem: Numeric Stepper value once NaN does not change to any number user > sets or increments > Method: > -Run sample application "SampleFromClient.mxml" > -Click the button "Set Value to 'Nan'" > -set the value to some other value say 101 [any 100-999] > -Click the numeric stepper to increment or decrement the value. > Result: > The text on the Numeric stepper remains 'NaN' > Expected: > Should change an increment w.r.t the input value > Workaround: > Crude please refer "workaround.mxml" -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira