This pull request introduces a significant improvement to the modal closing functionality. Previously, the modal could only be closed by clicking on the close button. With this update, the modal closing operation has been abstracted into a separate method - this.close(). Additionally, the modal can now also be closed by clicking outside the modal area, enhancing the user experience and interaction with the modal component.
This pull request introduces a significant improvement to the modal closing functionality. Previously, the modal could only be closed by clicking on the close button. With this update, the modal closing operation has been abstracted into a separate method - this.close(). Additionally, the modal can now also be closed by clicking outside the modal area, enhancing the user experience and interaction with the modal component.