Northeastern-Electric-Racing / Northeastern-Electric-Racing/FinishLine

[Maintenance] - Clear Form State only on Cancel

Open
#4,346 0 comments 0 reactions 1 assignee View on GitHub

@vijayab2029 is already working on this.

Since Jul 30, 2026.

maintenance stale
Dominant language
TypeScript
Stars
36
Forks
9
Avg merge
4d 21h
Merged PRs (30d)
11

Description

Description

When you click outside a task (or hit escape), our NERModal closes and the form resets, same as hitting cancel button. This keeps happening by accident. Form state shouldn't clear unless the user explicitly clicks 'cancel'.

Acceptance Criteria
  • clicking outside the modal or pressing escape no longer closes it or clears the form; only clicking cancel does
Proposed Solution
  • in NERModal.tsx, change Dialog's onClose={onHide} to receive (event, reason) and ignore backdropClick/escapeKeyDown instead of always calling onHide
Mocks

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.