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

[ Fix : Unused Prompt Component in QuillEditor for Unsaved Changes ] #226

Open
rohitPandey469 opened this issue Feb 22, 2025 · 0 comments
Open
Labels
bug Something isn't working feature firebase UI/UX

Comments

@rohitPandey469
Copy link
Contributor

Describe the bug
While investigating the QuillEditor, I came across the unused Prompt component designed to execute when changes are not saved. Currently, this component is not being utilized.

To Reproduce
Steps to reproduce the behavior:

  1. Create a tutorial.
  2. Insert text and navigate to http://localhost:5173/.
  3. No prompt is displayed.

Expected behavior
The prompt should activate if changes have not been saved to Firestore.

Desktop (please complete the following information):

  • OS: Windows
  • Browser Chrome

Additional context
I noticed that another contributor had considered implementing a popup modal for confirmation when navigating to a different URL, asking if the user is sure or if changes are unsaved. However, the existing Prompt component should suffice for this purpose, as it consistently saves changes to Firestore with every text modification.

@github-actions github-actions bot added bug Something isn't working feature firebase UI/UX labels Feb 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feature firebase UI/UX
Projects
None yet
Development

No branches or pull requests

1 participant