mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 09:58:04 +08:00
Unify SearchBox styles with Input component and add autoFocus
This commit is contained in:
@ -168,6 +168,7 @@ const NodeSelector: FC<NodeSelectorProps> = ({
|
||||
<div className='relative m-2' onClick={e => e.stopPropagation()}>
|
||||
{activeTab === TabsEnum.Start && (
|
||||
<SearchBox
|
||||
autoFocus
|
||||
search={searchText}
|
||||
onSearchChange={setSearchText}
|
||||
tags={tags}
|
||||
@ -200,6 +201,7 @@ const NodeSelector: FC<NodeSelectorProps> = ({
|
||||
)}
|
||||
{activeTab === TabsEnum.Tools && (
|
||||
<SearchBox
|
||||
autoFocus
|
||||
search={searchText}
|
||||
onSearchChange={setSearchText}
|
||||
tags={tags}
|
||||
|
||||
Reference in New Issue
Block a user