Skip to content

Conversation

@Pratik5252
Copy link
Contributor

Fixes #949

Previous Behavior
When users clicked the X to clear the search input, the visual field was cleared but the search state in the parent component remained unchanged. This caused old search results to reappear when typing again.

Solution
Updated clearInput() to call onSearchChange("") so the parent component's search state is properly reset along with the input field.

Copy link
Contributor

@perminder-17 perminder-17 left a comment

Choose a reason for hiding this comment

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

Works well and looks good to me! Thanks for the fix

@perminder-17 perminder-17 merged commit 98d4ac8 into processing:main Jan 6, 2026
14 checks passed
@perminder-17
Copy link
Contributor

Are you also interested in fixing that in 2.0 branch? I think the same issue is there with that branch as well.

@Pratik5252
Copy link
Contributor Author

Yes, I'll fix the same in 2.0 branch

@Pratik5252
Copy link
Contributor Author

@perminder-17 I have raised a PR and applied the same changes to branch 2.0

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.

Search Cancel button does not delete query text

2 participants