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

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

Issue 2954273002: [MD Bookmarks] Restore focus after closing a dialog or context menu. (Closed)
Patch Set: fix deps Created 3 years, 6 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
Index: chrome/browser/resources/md_bookmarks/edit_dialog.js
diff --git a/chrome/browser/resources/md_bookmarks/edit_dialog.js b/chrome/browser/resources/md_bookmarks/edit_dialog.js
index 06f916a3091bf445a2aef9e29de23c6bcdd8a494..582417e708d9e2e0978418e3d536273555856624 100644
--- a/chrome/browser/resources/md_bookmarks/edit_dialog.js
+++ b/chrome/browser/resources/md_bookmarks/edit_dialog.js
@@ -43,7 +43,7 @@ Polymer({
this.isFolder_ = isFolder;
this.parentId_ = parentId;
- this.$.dialog.showModal();
+ bookmarks.DialogFocusManager.getInstance().showDialog(this.$.dialog);
},
/**
@@ -60,7 +60,7 @@ Polymer({
if (!this.isFolder_)
this.urlValue_ = assert(editItem.url);
- this.$.dialog.showModal();
+ bookmarks.DialogFocusManager.getInstance().showDialog(this.$.dialog);
},
/**
« no previous file with comments | « chrome/browser/resources/md_bookmarks/edit_dialog.html ('k') | chrome/browser/resources/md_bookmarks/item.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698