Commit fc43f808 authored by n.bansal@samsung.com's avatar n.bansal@samsung.com

[PrintPreview] Custom input focus toggles

In print preview mode, focus toggles for radio buttons for pagerange
settings when custom input radio button is clicked again and page 
range is empty. 

This is not desired and happens because focus is set for
another radio button on blur event for custom input radio
button when it is empty.

BUG=397094

Review URL: https://codereview.chromium.org/435393005

Cr-Commit-Position: refs/heads/master@{#288485}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288485 0039d316-1c4b-4281-b951-d872f2087c98
parent e6e942ed
......@@ -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;
}
},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment