-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Create Tag Modal Issue: Clear the input value on press. #6212
Create Tag Modal Issue: Clear the input value on press. #6212
Conversation
@@ -210,6 +211,7 @@ export default function EditTagTermsModal({ | |||
if (isValidTagName(inputValue)) { | |||
setShowCreateModal(true); | |||
} | |||
setInputValue(''); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and tests are failing because of this line I believe.
If you clear the input value and save the new term, we submit an empty string to the backend on creating the tag.
You can test by trying to create a new tag with this code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
Checklist