mirror of
https://github.com/anotherhadi/ilovetui.git
synced 2026-10-05 19:08:25 +02:00
@@ -47,8 +47,10 @@ export function Sidebar(props: SidebarProps) {
|
||||
if (!select) return;
|
||||
const index = itemIndexAtScreenY(select, event.y);
|
||||
if (index !== null) {
|
||||
select.focus();
|
||||
select.setSelectedIndex(index);
|
||||
select.selectCurrent();
|
||||
event.preventDefault();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user