Return-Path: X-Original-To: apmail-flex-issues-archive@minotaur.apache.org Delivered-To: apmail-flex-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2DFA81097B for ; Wed, 8 Jan 2014 23:30:52 +0000 (UTC) Received: (qmail 15885 invoked by uid 500); 8 Jan 2014 23:30:51 -0000 Delivered-To: apmail-flex-issues-archive@flex.apache.org Received: (qmail 15857 invoked by uid 500); 8 Jan 2014 23:30:51 -0000 Mailing-List: contact issues-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list issues@flex.apache.org Received: (qmail 15801 invoked by uid 99); 8 Jan 2014 23:30:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jan 2014 23:30:51 +0000 Date: Wed, 8 Jan 2014 23:30:51 +0000 (UTC) From: "Chris Martin (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLEX-33505) value property of NumericStepper does not update on text input MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLEX-33505?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13866053#comment-13866053 ] Chris Martin commented on FLEX-33505: ------------------------------------- Confirmed fixed in 4.10.0. Thanks guys! > value property of NumericStepper does not update on text input > -------------------------------------------------------------- > > Key: FLEX-33505 > URL: https://issues.apache.org/jira/browse/FLEX-33505 > Project: Apache Flex > Issue Type: Bug > Components: mx: NumericStepper, Spark: NumericStepper > Affects Versions: Adobe Flex SDK 3.6 (Release), Adobe Flex SDK 4.6 (Release), Apache Flex 4.9.0 > Reporter: Chris Martin > Assignee: Alex Harui > Labels: easyfix, easytest > Fix For: Apache Flex 4.10.0 > > Attachments: NumericStepperTest.zip > > > If a user changes the value of a numeric stepper, they must focus on an different UI element for the change to propogate down to the value property. > I'll attach example code that demonstrates this behavior. The application is simple. User clicks on a button to present a popup with a numeric stepper in it. When the popup closes the label just to the right of the button gets updated with the NumericStepper.value property > Steps to Reproduce > 1.) Click on the button > 2.) Click into the NumericStepper and type in a new value > 3.) Close the popup > Result > The label is not updated with the appropriate value > Expected Result > The label is updated with the value that was typed into the NumericStepper > Workaround > You can get around this by detecting if the NumericStepper.textDisplay.text does not match the NumericStepper.value, if so then assume the textDisplay.text value is the right one and use it. This is not a good workaround as it requires an assumption and any updates to how the text value gets formatted into a numeric value in the component will not be carried over in the custom work around. > To Force expected behavior you can do the following: > 1.) Click on the button > 2.) Click into the NumericStepper and type in a new value > 3.) Click into the TextInput > 4.) Close the popup > When the NumericStepper loses focus, then the appropriate update functions are called in the component to update the value property -- This message was sent by Atlassian JIRA (v6.1.5#6160)