korymiller
korymiller

Reputation: 357

Flex Method on Leave TextInput

Does anyone know of an event that can be called after a user clicks out of a TextInput?

I would like the user to enter information, and when they finish I would like to format the information.

Thanks in advance for any advice!

Upvotes: 1

Views: 783

Answers (2)

Neeraj
Neeraj

Reputation: 8532

You should use the onBlur event which occurs on an element when it loses focus, i.e when a user clicks outside that specific element

Upvotes: 1

moropus
moropus

Reputation: 3782

That's valueCommit event you're looking for. It fires when user changed text and set focus to something else.

Upvotes: 1

Related Questions