diff --git a/tgui/packages/tgui/interfaces/ListInputWindow/ListInputModal.tsx b/tgui/packages/tgui/interfaces/ListInputWindow/ListInputModal.tsx index 0c8aa8dfbb5..7a0a7ba20c2 100644 --- a/tgui/packages/tgui/interfaces/ListInputWindow/ListInputModal.tsx +++ b/tgui/packages/tgui/interfaces/ListInputWindow/ListInputModal.tsx @@ -1,5 +1,5 @@ import { useState } from 'react'; -import { Autofocus, Button, Section, Stack } from 'tgui-core/components'; +import { Autofocus, Button, Input, Section, Stack } from 'tgui-core/components'; import { KEY_A, KEY_DOWN, @@ -10,7 +10,6 @@ import { } from 'tgui-core/keycodes'; import { InputButtons } from '../common/InputButtons'; -import { SearchBar } from '../common/SearchBar'; type ListInputModalProps = { items: string[]; @@ -148,12 +147,14 @@ export const ListInputModal = (props: ListInputModalProps) => { /> {searchBarVisible && ( - on_selected(filteredItems[selected])} - onSearch={onSearch} + onChange={onSearch} placeholder="Search..." - query={searchQuery} + value={searchQuery} /> )}