flex-users / flexlib

Open Source Flex components library.
github.com/flex-users/flexlib
MIT License
204 stars 91 forks source link

PromptingTextArea isn't extending TextArea properly, clearing text fails, typing returns null #329

Open nicoulaj opened 13 years ago

nicoulaj commented 13 years ago

Originally filed by michaelh...@gmail.com on 2010-09-16T07:44:09

What steps will reproduce the problem?

  1. Create two components, one a TextArea and one a PromptingTextArea (PTA)
  2. Attach a keydown listener to each having them call a checkKey method
  3. if checkKey method, accept the e.currentTarget as type TextArea
  4. trace the PromptingTextArea, PromptingTextArea breaks returning null
  5. set up two checkKey methods, one for TextArea and one for PromptingTextArea
  6. set the currentTarget in the checkKey method for PromptingTextArea to type as PromptingTextArea
  7. the text property for PromptingTextA is now accessible
  8. if you modify the checkKey method for PTA to watch for keycode 15 (ENTER key), then have the PTA set it's text property to '', it will trace as empty but visually wont update to be empty

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system? flexlib - 2.5 - flex4 on: Adobe Flash Builder 4 Windows 7 FireFox 3.6.10