From 24c4111e2829a8f20e6b12cb96a5794ea9bfec30 Mon Sep 17 00:00:00 2001 From: badasswp Date: Sun, 7 Dec 2025 12:39:22 +0100 Subject: [PATCH 1/3] chore: add changelog entry --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 15cf913..4aa5d1c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## 1.8.0 * Feat: Add Search & Replace feature for table head, foot & caption. +* Fix: Reset replace input field. * Tested up to WP 6.8. ## 1.7.0 From fc0be9e55b5b6259446ac2d0462e3d0d6ed0793e Mon Sep 17 00:00:00 2001 From: badasswp Date: Sat, 6 Dec 2025 12:55:31 +0100 Subject: [PATCH 2/3] fix: reset replace input --- src/core/app.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/app.tsx b/src/core/app.tsx index 801af19..b6062a1 100644 --- a/src/core/app.tsx +++ b/src/core/app.tsx @@ -62,6 +62,7 @@ const SearchReplaceForBlockEditor = (): JSX.Element => { if ( ! selectedText ) { setReplacements( 0 ); setSearchInput( '' ); + setReplaceInput( '' ); } }; From 7d18e6e96ffc5d0b85cccbeb0a7e9224ef91ddb6 Mon Sep 17 00:00:00 2001 From: badasswp Date: Mon, 8 Dec 2025 12:55:56 +0100 Subject: [PATCH 3/3] docs: update line comments --- src/core/app.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/app.tsx b/src/core/app.tsx index b6062a1..2e18803 100644 --- a/src/core/app.tsx +++ b/src/core/app.tsx @@ -40,7 +40,7 @@ const SearchReplaceForBlockEditor = (): JSX.Element => { const [ caseSensitive, setCaseSensitive ] = useState< boolean >( false ); const [ context, setContext ] = useState< boolean >( false ); - // Reference to the first field inside the modal + // Reference to the first field inside the modal. const searchFieldRef = useRef< HTMLInputElement | null >( null ); /** @@ -58,7 +58,7 @@ const SearchReplaceForBlockEditor = (): JSX.Element => { .getSelection() .toString(); - // By default, reset count and search input. + // By default, reset count, search & replace inputs. if ( ! selectedText ) { setReplacements( 0 ); setSearchInput( '' );