Skip to content

Conversation

guillim
Copy link
Contributor

@guillim guillim commented Jun 10, 2025

issue was the modal was closing itself due to onclickoutside while it should have been excluded

fixes #12512

@guillim guillim requested a review from bosiraphael June 10, 2025 09:17
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

Fixed unexpected modal closure by implementing a global click-outside prevention mechanism using React props.

  • Added dataGloballyPreventClickOutside prop to packages/twenty-front/src/modules/ui/layout/modal/components/Modal.tsx to control click-outside behavior
  • Modernized attribute naming from kebab-case to camelCase in packages/twenty-front/src/modules/ui/layout/modal/components/ConfirmationModal.tsx following React conventions
  • Ensures modals remain open during critical workflows like item restoration

2 files reviewed, no comments
Edit PR Review Bot Settings | Greptile

Copy link
Contributor

🚀 Preview Environment Ready!

Your preview environment is available at: http://bore.pub:37160

This environment will automatically shut down when the PR is closed or after 5 hours.

Copy link
Contributor

@bosiraphael bosiraphael left a comment

Choose a reason for hiding this comment

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

LGTM

@bosiraphael bosiraphael merged commit b74f690 into main Jun 10, 2025
52 checks passed
@bosiraphael bosiraphael deleted the modal-fix branch June 10, 2025 12:44
abdulrahmancodes pushed a commit to abdulrahmancodes/twenty that referenced this pull request Jun 10, 2025
issue was the modal was closing itself due to onclickoutside while it
should have been excluded

fixes twentyhq#12512
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

restore dropdown
2 participants