Question:
Is it possible to disable the end date picker until the user enters the start date? Below I am sharing my code. Please tell me where I am doing wrong?Answer:
Create state variabledateStart
.In
onChange
event of startDate
set its value, then disable endDate
based on dateStart
like this:If you have better answer, please add a comment about this, thank you!