Skip to content

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

@rohitPandey469

Description

@rohitPandey469

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions