iOS Question TextChanged Event of TextField and TextView is always triggered twice

Alexander Stolte

Expert
Licensed User
Longtime User
When I enter a letter, the TextChanged event is always triggered 2 times, once with the correct NewText and the 2nd time the OldText is in the NewText. Why is this so?
I did not notice this before.

Example is attached
 

Attachments

  • TextField Event.zip
    3.6 KB · Views: 144

Erel

B4X founder
Staff member
Licensed User
Longtime User
B4X:
Private Sub TextField1_TextChanged (OldText As String, NewText As String)
    Log("TextField1_TextChanged " &  OldText & " -> " & NewText)
End Sub

Private Sub TextView1_TextChanged (OldText As String, NewText As String)
    Log("TextView1_TextChanged: " &  OldText & " -> " & NewText)
End Sub

It doesn't happen here. Are you testing it on a real device?
 
Upvote 0
Top