From 011863ee333465c35728d45f008575f1fd3275ff Mon Sep 17 00:00:00 2001 From: CodingOnStar Date: Wed, 5 Aug 2026 17:48:34 +0800 Subject: [PATCH] fix: remove duplicate marketplace clear control --- .../home/__tests__/marketplace-search-autocomplete.spec.tsx | 2 ++ .../marketplace/home/marketplace-search-autocomplete.tsx | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/web/app/components/plugins/marketplace/home/__tests__/marketplace-search-autocomplete.spec.tsx b/web/app/components/plugins/marketplace/home/__tests__/marketplace-search-autocomplete.spec.tsx index 24fce66e5d6..e375ef99c0e 100644 --- a/web/app/components/plugins/marketplace/home/__tests__/marketplace-search-autocomplete.spec.tsx +++ b/web/app/components/plugins/marketplace/home/__tests__/marketplace-search-autocomplete.spec.tsx @@ -119,6 +119,8 @@ describe('MarketplaceSearchAutocomplete', () => { expect(screen.getByText('Research legal questions with cited sources.')).toBeInTheDocument() expect(container.querySelector('form')).toHaveAttribute('action', '/templates/knowledge') expect(container.querySelector('input[role="combobox"]')).toHaveAttribute('name', 'q') + expect(container.querySelector('input[role="combobox"]')).toHaveAttribute('type', 'text') + expect(container.querySelectorAll('button[aria-label="clearSearch"]')).toHaveLength(1) expect(container.querySelector('input[type="hidden"]')).toHaveValue('en-US') expect(mockPluginSearch).not.toHaveBeenCalled() }) diff --git a/web/app/components/plugins/marketplace/home/marketplace-search-autocomplete.tsx b/web/app/components/plugins/marketplace/home/marketplace-search-autocomplete.tsx index 785c0cb3bf0..715668d260e 100644 --- a/web/app/components/plugins/marketplace/home/marketplace-search-autocomplete.tsx +++ b/web/app/components/plugins/marketplace/home/marketplace-search-autocomplete.tsx @@ -166,7 +166,6 @@ export function MarketplaceSearchAutocomplete({ className="px-2 text-sm" placeholder={placeholder} size="large" - type="search" /> {!!value && (