Skip to content
Open
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/components/Common/ResourceDefinitionCategoryPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ import resourceCategoryApi from "@/types/base/resourceCategory/resourceCategoryA
import { ProductKnowledgeType } from "@/types/inventory/productKnowledge/productKnowledge";
import mutate from "@/Utils/request/mutate";
import query from "@/Utils/request/query";
import { isIOSDevice } from "@/Utils/utils";

interface CategoryBreadcrumb {
slug: string;
Expand Down Expand Up @@ -467,7 +468,7 @@ export function ResourceDefinitionCategoryPicker<T>({
value={searchQuery}
onValueChange={setSearchQuery}
className="h-9 border-0 focus:ring-0 text-base sm:text-sm"
autoFocus
autoFocus={!isIOSDevice}
/>
</div>
);
Expand Down Expand Up @@ -888,7 +889,7 @@ export function ResourceDefinitionCategoryPicker<T>({
</div>

<div className="flex-1 min-h-0 overflow-hidden">
<TabsContent value="search" className="h-full mt-0" autoFocus>
<TabsContent value="search" className="h-full mt-0">
{renderMainContent()}
</TabsContent>
<TabsContent value="recent" className="h-full mt-0">
Expand Down
Loading