Ensure active item is removed before scroll

This commit is contained in:
Daniel Imms
2018-01-23 10:39:21 -08:00
parent bce0cce74d
commit fba4f5f261
+4 -2
View File
@@ -357,11 +357,13 @@ class NavigationMode implements IDisposable {
this._accessibilityManager.rotateRows();
}
absoluteRow = this._terminal.scrollToRow(absoluteRow);
// Make sure there is no active element when scroll happens
if (this._focusedElement) {
this._focusedElement.removeAttribute('id');
}
absoluteRow = this._terminal.scrollToRow(absoluteRow);
this._absoluteFocusedRow = absoluteRow;
this._focusedElement = this._rowElements[absoluteRow - this._terminal.buffer.ydisp];
this._focusedElement.id = this._activeItemId;