Skip to content

🐛 Bug: Error message remains permanently visible after closing feedback form #2342

@sakshammjn

Description

@sakshammjn

Describe the bug

In the documentation "Need Help?" section, submitting an empty feedback form correctly produces an error message preventing submission. However, if the user decides to close the form by toggling the Yes/No radio button instead of fixing the text, the error message remains permanently visible on the page under the radio buttons.

Steps To Reproduce

  1. Visit a documentation page demonstrating the DocsHelp feedback component at the bottom.
  2. Click the "Thumbs Up" (Yes) icon to open the feedback form.
  3. Leave the text area completely blank and click "Submit Feedback".
  4. The error text "Feedback comment cannot be empty." appears.
  5. Click the exact same "Thumbs Up" (Yes) icon again. The form itself collapses and disappears.
  6. Notice the red error message remains floating there with no form attached.

Expected Behavior

Closing or toggling the visibility of the form should immediately clear any associated validation error states.

Screenshots

Image

Device Information [optional]

- OS: macOS
- Browser: Chrome
- version: 0.1.0

Are you working on this issue?

Yes

Do you think this work might require an [Architectural Decision Record (ADR)]? (significant or noteworthy)

No

Metadata

Metadata

Assignees

Labels

🐛 BugIndicates that the issue is a bug or defect.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions