I know that it’s not possible to move the close button of a modal inside of the modal box.
I am trying to use the custom attributes to give a normal button the functionality of the modal close button.
When I use "data-x-toggle-close=“1"” for the name of the custom attribute my normal button closes the modal but the content of the page does not stay in the right position. It always jumps to the top of the page.
How can I achieve to have the exact same functionality of the modal close button?