with new text ONLY when the text value changes AND when the user clicks off of the text box?
s
Stylianos Gakis
06/08/2023, 9:23 PM
Sounds like you’re gonna have two sources of truth for that state then right? Because before they click outside those two states would not be the same.
Maybe try listening to the focus of the text field and update this second state of yours when the focus is dropped from that component.
j
Justin Xu
06/08/2023, 11:18 PM
Right, but how do I track the focus of the text field