Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-28947

Clear NumericStepper Value and get NaN in the display text area

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK 4.5 (Release)
    • Apache Flex 4.10.0
    • Spark: NumericStepper
    • Affected OS(s): Windows
      Affected OS(s):
      Browser: Other (specify version)
      Language Found: English

    Description

      Steps to reproduce:
      1. Create Spark NumericStepper
      2. Create Spark Button
      3. Backspace the value in NumericStepper
      4. Click Button

      Actual Results:
      NaN is displayed in the NumericStepper

      Expected Results:
      Value remains empty or the default value is set.

      Workaround (if any):
      Set the callback valueParseFunction to the following function:

      private function _numericStepperParse(value:String):Number
      {
      if (!value)

      { return 0 }

      return Number(value);
      }

      Attachments

        1. Flex29847.air
          620 kB
          David Coleman

        Activity

          People

            Unassigned Unassigned
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: