I’m making a simple chat and I’m using the editable text box OnTextCommitted event to send the message.
When I press enter to commit the text the event is called 3 times. Why?
The event blueprint:
The result (When write and press enter):
As you can see, OnTextCommitted is being called 3 times. That is insane.
In the chat box the first message is shown but the 2 following messages are empty because I’m cleaning the text box after sending the first message, so the following 2 sends an empty message.
That’s why I’m using a PrintString blueprint node just after the event fires, to show you that it’s the text box who’s actually calling the event 3 times.