mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-23 00:58:32 +02:00
Fix sidebar scroll into view
This commit is contained in:
@@ -130,7 +130,8 @@ function TreeInner<T extends { id: string }>(
|
||||
if ($el == null) {
|
||||
return false;
|
||||
} else {
|
||||
$el?.focus();
|
||||
$el.focus();
|
||||
$el.scrollIntoView({ block: 'nearest' });
|
||||
return true;
|
||||
}
|
||||
}, []);
|
||||
|
||||
Reference in New Issue
Block a user