Hi @Waheed
Thanks for sharing the entire code…
The only place where you are saving is in
<Button
onClick={handleSave}
primary
disabled={!startDate || !endDate}
>
Save{" "}
</Button>`
But this button is not being clicked. I think that if you want the result to be saved when ‘closing the modal’ you need to handle it in the handleClose by adding handleSave
to handleClose. I hope this works… please let me know.
Thanks!