After the update to version 3 of DaisyUI, I no longer have control over how the responsive modal opens and closes. I am using ReactJS. Can someone please help me?
// modal button
<button className="btn" onClick={()=>window.my_modal_5.showModal()}>open modal</button>
// modal
<dialog id="my_modal_5" className="modal modal-bottom sm:modal-middle">
<form method="dialog" className="modal-box">
<h3 className="font-bold text-lg">Hello!</h3>
<p className="py-4">Press ESC key or click the button below to close</p>
<div className="modal-action">
{/* if there is a button in form, it will close the modal */}
<button className="btn">Close</button>
</div>
</form>
</dialog>
It says, "Open the modal using ID.showModal() method" I just don't understand what that means. In the last version of DaisyUI, this trouble was not there. I'm using this for an old project, I also updated the daisyUI npm package in my project.