Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6597

React Native - useState - Text Input field is not clearing the first character from state after I delete all text from input

$
0
0

My problem is that when I enter on the airline textInput for example "TEST" and when I enter the delete keyboard button, the last character stays in the state ex: "T", but in view it shows like its fully deleted. With console.log(routes) I can see that the last character T is still in the object. Below is my code


Viewing all articles
Browse latest Browse all 6597

Trending Articles