Hello good people,
I would like to kindly ask you how to reset Dropdown menu in the web3uikit modal once the modal is closed, canceled or fired a subsequent action? Right now, it keeps returning the previously selected option.
Thank you very much in advance!
cities = [
{
id: 'New York',
label: 'New York'
},
{
id: 'Toronto',
label: 'Toronto'
},
]
return (
<Modal
title="Select token ID"
isVisible={isVisible}
onCancel={onClose}
onCloseButtonPressed={onClose}
onOk={handleOnOk}
>
<div">
<Dropdown label="Selected NFT ID: " options={cities} onChange={handleOnChange} />
</div>
</Modal>
)