wiln / flexlib

Automatically exported from code.google.com/p/flexlib
0 stars 0 forks source link

PromptingTextInput. Text property getter works incorrect #261

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Steps to reproduce the problem:
1. Add Label and PropptingTextInput controls to the application.
2. Bind Label.text property to PromptingTextInput.text and compile the 
application.
3. Enter some text to PromptingTextInput control.

Expected result: 
   The text in Label changed

Actual result:
   The text in Label changed only after second character of input string 
was come.

Additional information:
   To fix the bug we need change text property getter (add checking of 
_currentlyFocused property): 
        override public function get text():String 
        { 
                // If the text has changed 
                if ( _textEmpty && !_currentlyFocused) 
                { 
                        // Skip the prompt text value 
                        return ""; 
                } 
                else 
                { 
                        return super.text; 
                } 
        } 
instead of this one: 
        override public function get text():String 
        { 
                // If the text has changed 
                if ( _textEmpty) 
                { 
                        // Skip the prompt text value 
                        return ""; 
                } 
                else 
                { 
                        return super.text; 
                } 
        } 
Please, fix the issue or provide the commit asses. Thanks in advance. 

Original issue reported on code.google.com by zakhar.m...@gmail.com on 16 Nov 2009 at 12:40

GoogleCodeExporter commented 8 years ago

Original comment by olarivain@gmail.com on 29 Mar 2010 at 1:26