Skip to content

Draft: Search Input State Not Reset After Submission

srilatha bandari requested to merge demo into develop

What does this MR do and why?

This MR fixes an issue where the search input field was not resetting after submitting a Book Number. It improves the patient lookup workflow by automatically clearing the input field after submission, allowing volunteers to quickly enter a new book number without manually deleting the previous value.

Why this change?

Prevents the search field from retaining previously entered book numbers

Reduces manual effort required to clear the input field

Improves workflow efficiency for volunteers during patient lookup

Ensures a smoother and faster patient search experience

References

Related issue: Search Input State Not Reset After Submission

Branch: fix/search-input-reset

Before After
Search input retained the previously entered book number after submission Search input automatically clears after submission
Users had to manually delete the previous value Users can directly enter a new book number
Slower workflow during patient lookup Faster and smoother patient lookup process

Clone the repository:

git clone <repo_url> cd ehrs-frontend-vite

Install dependencies:

pnpm install

Run the development server:

pnpm dev

Open browser:

http://localhost:5173

Verify:

Navigate to the patient search / book number lookup section

Enter a book number in the search input

Click Check / Submit

Confirm that the patient lookup works correctly

Verify that the search input field is cleared automatically after submission

MR acceptance checklist

  • Fixed issue where search input state was not resetting after submission

  • Ensured patient lookup functionality remains unchanged

  • Implemented automatic input field reset after submission

  • Verified that no existing features are affected

#224 (closed)

Summary

Fixed the issue where the search input field retained the previously entered book number after submission. The input now resets automatically, improving the efficiency of the patient lookup workflow for volunteers.

Before image

After - search input state reset image

Edited by srilatha bandari

Merge request reports

Loading