Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

close #662 #670

Merged
merged 5 commits into from
Jan 27, 2025
Merged

close #662 #670

merged 5 commits into from
Jan 27, 2025

Conversation

rojasadrian012
Copy link
Collaborator

@rojasadrian012 rojasadrian012 commented Jan 24, 2025

Replaced setDocument with setDocumentAndMarkDirtyState to simultaneously update the document and mark it as modified (isDirty = true). Exposed the setIsDirty function via the provider’s context, allowing the SaveButton component to reset the state (isDirty = false) after saving. A useEffect monitors isDirty to trigger browser warnings on unsaved changes.

close #662

@brauliodiez brauliodiez merged commit cd6efbb into dev Jan 27, 2025
2 checks passed
@brauliodiez brauliodiez deleted the feature/#662-show-exit-modal-when-doc-dirty branch January 27, 2025 08:33
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.

Show exit modal dialog only when the doc is dirty
2 participants