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

Unified Diff: chrome/browser/resources/settings/device_page/display.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/device_page/display.js
diff --git a/chrome/browser/resources/settings/device_page/display.js b/chrome/browser/resources/settings/device_page/display.js
index 24d437496603afb5de1d2bea01343dd6de8be547..6ad553b9eac1358ff4c46fde61b98a0fd1521a5e 100644
--- a/chrome/browser/resources/settings/device_page/display.js
+++ b/chrome/browser/resources/settings/device_page/display.js
@@ -370,8 +370,12 @@ Polymer({
id, properties, this.setPropertiesCallback_.bind(this));
},
- /** @private */
- onOverscanTap_: function() {
+ /**
+ * @param {!Event} e
+ * @private
+ */
+ onOverscanTap_: function(e) {
+ e.preventDefault();
this.overscanDisplayId = this.selectedDisplay.id;
this.showOverscanDialog_(true);
},

Powered by Google App Engine
This is Rietveld 408576698