I think the issue was by ths following , I see you're storing your endDate as a state. So, when the user blurs startDate call validateStartDate. In that function, use the endDate state value to validate. See the pseudo code
will be helpful for those in need This is the code for an input text field. What I want is to call the "checkDateFormat" function with the text input as a parameter when the user leaves the field. , Try to use,
Using an input field with onBlur and a value from state blocks input in Reactjs JSX?
I wish this help you The value attribute ties the value of the input to that state, and if the user changes the value then the state and the input value is no longer tied to each other. So React stops that from happening. You probably want to use the defaultValue attribute instead.
To fix the issue you can do I have an input text (adress) wich take results from Google Maps Autocomplete. After a click on result, the result appear on the input text and display submit button. I would like, if we click one more time on the input text : - erase the result from google (to start on new research) - hide the submit button. , The solution I've found :