NumericInput Dispatches Wrong Change Event

bucpatr
2011-02-14
2013-04-29
  • bucpatr
    bucpatr
    2011-02-14

    The commitTextInput() method of NumericInput.as dispatches a flash.events.Event event of type \'change\' when the parameter passed in is true. This conflicts with the TextOperationEvent defined in SkinnableTextBase whose type is also definied as \'change\'. As a result, if the user listens for a \'change\' event on a NumericInput defined in the mxml of a component, flex with throw an error when the displayed text of the NumericInput changes.

    PossibleSolution: Change the event dispatched at the end of commitTextInput() to a TextOperationEvent.