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

Unified Diff: chrome/browser/resources/settings/passwords_and_forms_page/passwords_section.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/passwords_and_forms_page/passwords_section.js
diff --git a/chrome/browser/resources/settings/passwords_and_forms_page/passwords_section.js b/chrome/browser/resources/settings/passwords_and_forms_page/passwords_section.js
index 51377c74ef3ea10e21852210e4c031a5f19f4076..32fea6ec1aca68acee5af3d5a8370b2f01ec4478 100644
--- a/chrome/browser/resources/settings/passwords_and_forms_page/passwords_section.js
+++ b/chrome/browser/resources/settings/passwords_and_forms_page/passwords_section.js
@@ -92,9 +92,11 @@ Polymer({
/**
* Shows the edit password dialog.
+ * @param {!Event} e
* @private
*/
- onMenuEditPasswordTap_: function() {
+ onMenuEditPasswordTap_: function(e) {
+ e.preventDefault();
/** @type {CrActionMenuElement} */(this.$.menu).close();
this.showPasswordEditDialog_ = true;
},

Powered by Google App Engine
This is Rietveld 408576698