I have a PickerList component in my utility app. When I choose a new item in it a main screen recreates.
All components adds to ScrollContainer and when the screen recreates I call removeChildren(0, -1, true).
And then if I enter text in a TextField I get exception in the line 1970 of the PickerList.as. As I understand correctly the old PickerList still has stage key event handler but doesn't have a popupContentManager instance already.
The solution which I have found is to recreate main screen when PickerList calls Event.Close not in Event.Change as I did before. Even call PickerList.closeList before the recreating didn't help.
So my question is why did removing a component from ScrollContainer not detach the stage key listener from the PickerList? Is it a bug or not?