Skip to content

Conversation

@terrerox
Copy link
Contributor

@terrerox terrerox commented Oct 1, 2025

Description

Add preventClosing prop to prevent modal from closing when clicking the password visibility toggle icon.

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

Testing Process

Additional Notes

@terrerox terrerox requested a review from CandelR as a code owner October 1, 2025 17:51
@vercel
Copy link

vercel bot commented Oct 1, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
drive-web Ready Ready Preview Comment Oct 14, 2025 6:11pm

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Oct 1, 2025

Deploying drive-web with  Cloudflare Pages  Cloudflare Pages

Latest commit: 984a78d
Status: ✅  Deploy successful!
Preview URL: https://a453ffcb.drive-web.pages.dev
Branch Preview URL: https://fix-eye-icon-closes-modal.drive-web.pages.dev

View logs

Comment on lines 59 to 60
<div onMouseDown={handleMouseDown} role="none">
<form onSubmit={handleSubmit}>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @terrerox, the project https://github.com/internxt/ui is ours. Perhaps it would be better to try adding the fix to the Modal component directly instead of adding a patch here, as it could happen in other places where the Modal component is used that the click bubbles up to the backdrop and closes because the click event comes from the children.
What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see it’s already defined, thanks!

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What I have seen completely disables the functionality of closing the modal window when clicking outside of it, but I think what we should do is prevent the click event from bubbling in the components that we pass as children to the Modal, since what happens is undesirable

Copy link
Contributor Author

@terrerox terrerox Oct 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it! I just opened a PR on @internxt/ui. Looking forward to your feedback. @CandelR

@terrerox terrerox force-pushed the fix/eye-icon-closes-modal branch from 33e6fab to f01ba53 Compare October 9, 2025 14:30
@terrerox terrerox requested review from CandelR and removed request for CandelR October 9, 2025 14:34
@sonarqubecloud
Copy link

@terrerox terrerox merged commit 9a94155 into master Oct 14, 2025
16 checks passed
@terrerox terrerox deleted the fix/eye-icon-closes-modal branch October 14, 2025 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants