Skip to content

Create event modal fails to reset without user input #425

@intelagense

Description

@intelagense

Describe the bug

After creating an event, a success message is displayed along with an option to create another event. If the user instead closes the modal and reopens it using the plus icon on any day or the "add event" button, the modal continues to display the success message and the option to create another event instead of resetting its state.

To Reproduce

Steps to reproduce the behavior:

  1. Create any successful event.
  2. Close the modal by clicking close or clicking outside of the modal.
  3. Attempt to create a new event.
  4. When the modal reopens, notice it displays the previous success message.

You will need to click on "New Event" to proceed with creating a new event.

Expected behavior

After creating an event and closing the modal, the modal should reset when reopened. It should no longer display the previous success message with the option to create another event. The modal should return to its initial state, ready for a new event creation process. The current behavior can confuse users who need to enter multiple events in the same session.

Screenshots

success screen of modal

Which Branch should this fix be Pulled into?

PR into [branchName]

Device Information

N/A

Additional context

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrontendLow PriorityThis is for issues that may or may not be important, and do not need to be solved quickly.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions