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

Unified Diff: chrome/browser/resources/print_preview/settings/page_settings.js

Issue 435393005: [PrintPreview] Custom input focus toggles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review feedback Created 6 years, 4 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/print_preview/settings/page_settings.js
diff --git a/chrome/browser/resources/print_preview/settings/page_settings.js b/chrome/browser/resources/print_preview/settings/page_settings.js
index 6cec4e04d73c27b4fa3b494de7e1aa83b1a6ef6b..f9645444758468429c628bd85b49614e318745e3 100644
--- a/chrome/browser/resources/print_preview/settings/page_settings.js
+++ b/chrome/browser/resources/print_preview/settings/page_settings.js
@@ -170,8 +170,9 @@ cr.define('print_preview', function() {
* the custom input is empty.
* @private
*/
- onCustomInputBlur_: function() {
- if (this.customInput_.value == '') {
+ onCustomInputBlur_: function(event) {
+ if (this.customInput_.value == '' &&
+ event.relatedTarget != this.customRadio_) {
this.allRadio_.checked = true;
}
},
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698