Description
This PR prevents the Security dialog from closing when the user clicks the "eye" icon to toggle password visibility.
Why:
Previously, clicking the Eye
icon unintentionally triggered the dialog to close. This happened because the Modal
component listens to the mouseDown
event to detect outside clicks. Since the Eye
icon is rendered outside the dialog boundary, it was treated as an external click.
This fix improves the user experience by allowing users to toggle password visibility without accidentally closing the dialog.
Related Issues
Related Pull Requests
Checklist
- Changes have been tested locally.
- Unit tests have been written or updated as necessary.
- The code adheres to the repository's coding standards.
- Relevant documentation has been added or updated.
- No new warnings or errors have been introduced.
- SonarCloud issues have been reviewed and addressed.
- QA Passed