Commit a5d00767 authored by hcarmona's avatar hcarmona Committed by Commit bot

Focus the history group that was clicked.

BUG=473071

Review URL: https://codereview.chromium.org/1090783002

Cr-Commit-Position: refs/heads/master@{#325461}
parent a5ec7f35
......@@ -1802,6 +1802,16 @@ HistoryView.prototype.toggleGroupedVisits_ = function(e) {
}
entry.classList.toggle('expand');
var row = entry.querySelector('.site-domain-wrapper');
var activeRows =
this.resultDiv_.getElementsByClassName(cr.ui.FocusRow.ACTIVE_CLASS);
for (var i = 0; i < activeRows.length; ++i) {
if (activeRows[i] != row) // Ignore |row| to avoid flicker.
activeRows[i].makeActive(false);
}
row.makeActive(true);
this.updateFocusGrid_();
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment