diff --git a/plugins/woocommerce-admin/client/marketplace/components/search/search.tsx b/plugins/woocommerce-admin/client/marketplace/components/search/search.tsx index e0915470e6e..0986823c098 100644 --- a/plugins/woocommerce-admin/client/marketplace/components/search/search.tsx +++ b/plugins/woocommerce-admin/client/marketplace/components/search/search.tsx @@ -26,6 +26,8 @@ function Search(): JSX.Element { useEffect( () => { if ( query.term ) { setSearchTerm( query.term ); + } else { + setSearchTerm( '' ); } }, [ query.term ] ); diff --git a/plugins/woocommerce/changelog/fix-wccom-18033-reset-search-when-tab-changes b/plugins/woocommerce/changelog/fix-wccom-18033-reset-search-when-tab-changes new file mode 100644 index 00000000000..40f039772fd --- /dev/null +++ b/plugins/woocommerce/changelog/fix-wccom-18033-reset-search-when-tab-changes @@ -0,0 +1,5 @@ +Significance: patch +Type: fix +Comment: Reset search input when switching between tabs in the marketplace page + +