Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add item form clears after item submit #79

Merged
merged 2 commits into from
Mar 28, 2024

Conversation

aberger3647
Copy link
Collaborator

Description

The add item form field now empties after the new item is added. This is achieved by setting the state of userItem to an empty string.

Related Issue

#68

Acceptance Criteria

  • The add item form field after a new item is added

Type of Changes

Bug fix

Updates

Before

Screenshot 2024-03-26 at 12 47 28 PM

After

Screenshot 2024-03-26 at 12 47 52 PM

Testing Steps / QA Criteria

  1. Add an item to a list

Copy link

github-actions bot commented Mar 26, 2024

Visit the preview URL for this PR (updated for commit 2a9a6cc):

https://tcl-67-smart-shopping-list--pr79-bug-clear-field-add-4hp9c915.web.app

(expires Tue, 02 Apr 2024 22:37:22 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 1dc6f6876568bd8a1c97781eec7984835c207f7c

Copy link
Collaborator

@jtkabenni jtkabenni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

.github/List.jsx Outdated Show resolved Hide resolved
@aberger3647 aberger3647 self-assigned this Mar 26, 2024
Copy link
Collaborator

@bdanzer bdanzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jtkabenni jtkabenni merged commit 430f57d into main Mar 28, 2024
3 checks passed
@adidalal adidalal deleted the bug/clear-field-add-item-form branch April 8, 2024 05:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants