Fix kanban scrollInto (#1663)

Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com>
This commit is contained in:
Denis Bykhov 2022-05-05 23:32:22 +06:00 committed by GitHub
parent 132b18b181
commit d250853ffc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -188,7 +188,7 @@
$: stateRefs.length = states.length
function scrollInto (statePos: number): void {
stateRefs[statePos].scrollIntoView({ behavior: 'auto', block: 'nearest' })
stateRefs[statePos]?.scrollIntoView({ behavior: 'auto', block: 'nearest' })
}
export function select (offset: 1 | -1 | 0, of?: Doc, dir?: 'vertical' | 'horizontal'): void {