File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 22
33## 1.8.0
44* Feat: Add Search & Replace feature for table head, foot & caption.
5+ * Fix: Reset replace input field.
56* Tested up to WP 6.8.
67
78## 1.7.0
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ const SearchReplaceForBlockEditor = (): JSX.Element => {
4040 const [ caseSensitive , setCaseSensitive ] = useState < boolean > ( false ) ;
4141 const [ context , setContext ] = useState < boolean > ( false ) ;
4242
43- // Reference to the first field inside the modal
43+ // Reference to the first field inside the modal.
4444 const searchFieldRef = useRef < HTMLInputElement | null > ( null ) ;
4545
4646 /**
@@ -58,10 +58,11 @@ const SearchReplaceForBlockEditor = (): JSX.Element => {
5858 . getSelection ( )
5959 . toString ( ) ;
6060
61- // By default, reset count and search input .
61+ // By default, reset count, search & replace inputs .
6262 if ( ! selectedText ) {
6363 setReplacements ( 0 ) ;
6464 setSearchInput ( '' ) ;
65+ setReplaceInput ( '' ) ;
6566 }
6667 } ;
6768
You can’t perform that action at this time.
0 commit comments