cap
cap copied to clipboard
Prevent the content editing modal from closing when clicking outside it
What problem would this feature solve, if any?
Clicking outside the content editing modal closes it immediately and discards any unsaved text. An accidental click while writing can therefore cause users to lose their work.
Describe the solution you'd like
Keep the modal open when users click outside it. Closing the modal should require an explicit action, such as clicking the close or cancel button.
Describe alternatives you've considered
Show a confirmation dialog before closing a modal with unsaved changes.
Additional context:
https://github.com/user-attachments/assets/982e1465-d703-478b-9c9b-fde262925e53