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

Unified Diff: chrome/browser/resources/settings/search_engines_page/search_engine_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/search_engines_page/search_engine_entry.js
diff --git a/chrome/browser/resources/settings/search_engines_page/search_engine_entry.js b/chrome/browser/resources/settings/search_engines_page/search_engine_entry.js
index 68529dae712f7a9d9bb9c75ec9f6ee5558497b39..5e026d6e06927841b27e5c5c828164514f8ebea0 100644
--- a/chrome/browser/resources/settings/search_engines_page/search_engine_entry.js
+++ b/chrome/browser/resources/settings/search_engines_page/search_engine_entry.js
@@ -88,8 +88,12 @@ Polymer({
assert(this.$$('paper-icon-button')));
},
- /** @private */
- onEditTap_: function() {
+ /**
+ * @param {!Event} e
+ * @private
+ */
+ onEditTap_: function(e) {
+ e.preventDefault();
this.closePopupMenu_();
this.showEditSearchEngineDialog_ = true;

Powered by Google App Engine
This is Rietveld 408576698