Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4011)

Unified Diff: chrome/browser/resources/md_bookmarks/list.js

Issue 2777503002: [MD Bookmarks] Deselect items when clicking outside the bookmark card. (Closed)
Patch Set: rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/md_bookmarks/item.js ('k') | chrome/browser/resources/md_bookmarks/reducers.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_bookmarks/list.js
diff --git a/chrome/browser/resources/md_bookmarks/list.js b/chrome/browser/resources/md_bookmarks/list.js
index 0edfcbbc4ccf63afd8e4dc4a61ca7153185ec045..19e475d0e9456f766b3aa99b219b226fa16346d2 100644
--- a/chrome/browser/resources/md_bookmarks/list.js
+++ b/chrome/browser/resources/md_bookmarks/list.js
@@ -28,6 +28,7 @@ Polymer({
},
listeners: {
+ 'click': 'deselectItems_',
'open-item-menu': 'onOpenItemMenu_',
},
@@ -105,4 +106,9 @@ Polymer({
isEmptyList_: function() {
return this.displayedList_.length == 0;
},
+
+ /** @private */
+ deselectItems_: function() {
+ this.dispatch(bookmarks.actions.deselectItems());
+ },
});
« no previous file with comments | « chrome/browser/resources/md_bookmarks/item.js ('k') | chrome/browser/resources/md_bookmarks/reducers.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698