Commit 973cb5da authored by dbeam's avatar dbeam Committed by Commit bot

history: fix focus row highlighting bug.

When tapping a date, in landscape, on tablet the focus row color doesn't
change. Fix this by focusing the title link when anywhere in the entry
box is tapped (it's going to navigate to the link anyways).

R=dpapad@chromium.org
BUG=437438
TEST=date a date, in landscape, on tablet -- color changes for .5s

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

Cr-Commit-Position: refs/heads/master@{#316405}
parent 28fc63ed
......@@ -287,8 +287,10 @@ Visit.prototype.getResultDOM = function(propertyBag) {
// Support clicking anywhere inside the entry box.
entryBox.addEventListener('click', function(e) {
if (!e.defaultPrevented)
if (!e.defaultPrevented) {
self.titleLink.focus();
self.titleLink.click();
}
});
} else {
var dropDown = createElementWithClassName('button', 'drop-down');
......
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