Marketplace: Reset search input when tab changes (#40160)
This commit is contained in:
commit
be6982432e
|
@ -26,6 +26,8 @@ function Search(): JSX.Element {
|
|||
useEffect( () => {
|
||||
if ( query.term ) {
|
||||
setSearchTerm( query.term );
|
||||
} else {
|
||||
setSearchTerm( '' );
|
||||
}
|
||||
}, [ query.term ] );
|
||||
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
Significance: patch
|
||||
Type: fix
|
||||
Comment: Reset search input when switching between tabs in the marketplace page
|
||||
|
||||
|
Loading…
Reference in New Issue