Hi support!
I am trying to add a custom attribute to x-modal-close.
The goal is to hide a div contained in the modal and ensure that it is not displayed the modal is not open.
I have added a custom attribute to the toggle but I am unable to replicate the function for closing the modal.
Any assistance would be greatly appreciated; thank you!