Please file a bug
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Sergey Kovalyov Sent: Wednesday, July 09, 2008 4:38 AM To: [EMAIL PROTECTED]; [email protected] Subject: [flexcomponents] Clicking BACKSPACE button in TextField (and thus TextArea) does not fire change event when the character removed is ENTER (char code 13) Hi All! Clicking backspace button in TextField (and thus TextArea) does not fire change event when the character removed by backspace is enter (char code 13) Run the example below in the debug mode and perform this scenario: 1. Click on the text area to set focus on it. 2. Click 1, ENTER, 2, ENTER, 3, BACKSPACE, BACKSPACE. 3. As a result the change event is not fired after the last BACKSPACE click. Is it bug or feature? I assume that it is a bug, because the text length actually changes and the textField height changes also if the TextField has autoSize property set to other value than "none". Sergey. <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> "> <mx:Script> <![CDATA[ private function onTextAreaChange() : void { trace(new Date().time, textArea.length, textArea.text.charCodeAt(textArea.text.length - 1)); } ]]> </mx:Script> <mx:TextArea id="textArea" width=" 200" height=" 200" change="onTextAreaChange()" /> </mx:Application>
