mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
wip: desktop work
This commit is contained in:
parent
1edb23c2c7
commit
e5271f3d1a
1 changed files with 0 additions and 2 deletions
|
|
@ -30,7 +30,6 @@ export interface SelectProps<T> {
|
|||
export function Select<T>(props: SelectProps<T>) {
|
||||
let inputRef: HTMLInputElement | undefined = undefined
|
||||
let listboxRef: HTMLUListElement | undefined = undefined
|
||||
let contentRef: HTMLDivElement | undefined = undefined
|
||||
const [store, setStore] = createStore({
|
||||
filter: "",
|
||||
})
|
||||
|
|
@ -144,7 +143,6 @@ export function Select<T>(props: SelectProps<T>) {
|
|||
</KobalteSelect.Trigger>
|
||||
<KobalteSelect.Portal>
|
||||
<KobalteSelect.Content
|
||||
ref={(el) => (contentRef = el)}
|
||||
onKeyDown={(e) => {
|
||||
if (!props.filter) return
|
||||
if (e.key === "ArrowUp" || e.key === "ArrowDown" || e.key === "Escape") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue