-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Labels
Description
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:
- Create a tutorial.
- Insert text and navigate to http://localhost:5173/.
- 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.