mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-22 05:11:06 -05:00
Revert onChange back to onInput
This commit is contained in:
@@ -167,17 +167,8 @@ const OpenRouterModelPicker: React.FC = () => {
|
||||
placeholder="Search and select a model..."
|
||||
value={searchTerm}
|
||||
onInput={(e) => {
|
||||
const newModelId = (e.target as HTMLInputElement)?.value?.toLowerCase()
|
||||
const apiConfig = {
|
||||
...apiConfiguration,
|
||||
openAiModelId: newModelId,
|
||||
}
|
||||
setApiConfiguration(apiConfig)
|
||||
setSearchTerm(newModelId)
|
||||
setIsDropdownVisible(true)
|
||||
}}
|
||||
onChange={(e) => {
|
||||
handleModelChange((e.target as HTMLInputElement)?.value?.toLowerCase())
|
||||
setIsDropdownVisible(true)
|
||||
}}
|
||||
onFocus={() => setIsDropdownVisible(true)}
|
||||
onKeyDown={handleKeyDown}
|
||||
|
||||
Reference in New Issue
Block a user