You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Alex Harui (JIRA)" <ji...@apache.org> on 2012/11/05 20:52:15 UTC

[jira] [Commented] (FLEX-28947) Clear NumericStepper Value and get NaN in the display text area

    [ https://issues.apache.org/jira/browse/FLEX-28947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13490866#comment-13490866 ] 

Alex Harui commented on FLEX-28947:
-----------------------------------

Might be already fixed by other recent checkins.
                
> Clear NumericStepper Value and get NaN in the display text area
> ---------------------------------------------------------------
>
>                 Key: FLEX-28947
>                 URL: https://issues.apache.org/jira/browse/FLEX-28947
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: NumericStepper
>    Affects Versions: Adobe Flex SDK 4.5 (Release)
>         Environment: Affected OS(s): Windows
> Affected OS(s): 
> Browser: Other (specify version)
> Language Found: English
>            Reporter: Adobe JIRA
>              Labels: EasyFix
>
> 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);
> 			}

--
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