How we can clear the old value without a page refresh? I'm using react-datalist-input in bootstrap modal. I want to clear the textbox when someone clicks on the close button of the modal. Screenshot: https://prnt.sc/vn866j Thanks