HTML Tree: Fix focused row losing focus sometimes not being redrawn

This commit is contained in:
Adomas Venčkauskas 2022-03-22 13:27:43 +02:00
parent eab63acab3
commit 25230b0fca

View file

@ -127,7 +127,7 @@ class TreeSelection {
let toInvalidate = new Set(this.selected);
toInvalidate.add(index);
toInvalidate.add(this.pivot);
toInvalidate.add(this.focused);
this.selected = new Set([index]);
this.focused = index;
this.pivot = index;