Skip to content

Conversation

@badasswp
Copy link
Owner

@badasswp badasswp commented Dec 8, 2025

This PR resolves this issue.

Description / Background Context

At the moment, when a user performs a search and replace operation and then proceeds to exit the modal, we can see that the replace field still retains the previous value. The expected behaviour should be that this is reset to an empty string.

This PR introduces change to address this issue.


Image

Testing Instructions

  • Pull PR to local.
  • Build correctly using yarn build.
  • Perform a search & replace activity for any text on your block editor.
  • Close the modal and save your post.
  • Open search & replace modal.
  • Observe that the Replace field is reset to an empty string.
  • Observe that there are no regressions introduced as a result of this change.

@badasswp badasswp self-assigned this Dec 8, 2025
@badasswp badasswp added bug Something isn't working enhancement New feature or request chore An assigned task to be done labels Dec 8, 2025
@badasswp badasswp linked an issue Dec 8, 2025 that may be closed by this pull request
@badasswp badasswp merged commit 7a9de20 into release-1.8.0 Dec 8, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working chore An assigned task to be done enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reset Replace input field correctly

2 participants