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

Unified Diff: chrome/browser/resources/settings/bluetooth_page/bluetooth_page.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/bluetooth_page/bluetooth_page.js
diff --git a/chrome/browser/resources/settings/bluetooth_page/bluetooth_page.js b/chrome/browser/resources/settings/bluetooth_page/bluetooth_page.js
index 3c17c62ae3e14951eb3960f375bec75a81c5d838..2e03399267b5a07f112db0060b91e9a7490400ad 100644
--- a/chrome/browser/resources/settings/bluetooth_page/bluetooth_page.js
+++ b/chrome/browser/resources/settings/bluetooth_page/bluetooth_page.js
@@ -374,8 +374,12 @@ Polymer({
this.pairingEvent_ = e;
},
- /** @private */
- onAddDeviceTap_: function() {
+ /**
+ * @param {!Event} e
+ * @private
+ */
+ onAddDeviceTap_: function(e) {
+ e.preventDefault();
this.openDialog_('addDevice');
},

Powered by Google App Engine
This is Rietveld 408576698