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

Unified Diff: chrome/browser/resources/settings/on_startup_page/startup_url_entry.js

Issue 2557073003: Call preventDefault in all on-tap events that show a dialog. (Closed)
Patch Set: nit Created 4 years 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/settings/on_startup_page/startup_url_entry.js
diff --git a/chrome/browser/resources/settings/on_startup_page/startup_url_entry.js b/chrome/browser/resources/settings/on_startup_page/startup_url_entry.js
index b5d363e47b21f1a153c1d241d602689d1ff14887..27de5f0e600f7613550b979de8598a5ddb3d29b9 100644
--- a/chrome/browser/resources/settings/on_startup_page/startup_url_entry.js
+++ b/chrome/browser/resources/settings/on_startup_page/startup_url_entry.js
@@ -46,8 +46,12 @@ Polymer({
this.model.modelIndex);
},
- /** @private */
- onEditTap_: function() {
+ /**
+ * @param {!Event} e
+ * @private
+ */
+ onEditTap_: function(e) {
+ e.preventDefault();
this.$$('dialog[is=cr-action-menu]').close();
this.fire(settings.EDIT_STARTUP_URL_EVENT, this.model);
},

Powered by Google App Engine
This is Rietveld 408576698