Commit b6d55b6b authored by eustas@chromium.org's avatar eustas@chromium.org

Dragging text from 'chrome://settings/searchEngines' leaves input empty.

Delay 'focus' event handler to ensure that 'input' event
is processed first.

BUG=263743
R=arv@chromium.org, tkent@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233268 0039d316-1c4b-4281-b951-d872f2087c98
parent 499cb702
......@@ -244,7 +244,12 @@ cr.define('options', function() {
}, 50);
}
inputEl.addEventListener('focus', this.handleFocus_.bind(this));
// In some cases 'focus' event may arrive before 'input'.
// To make sure revalidation is triggered we postpone 'focus' handling.
var handler = this.handleFocus_.bind(this);
inputEl.addEventListener('focus', function() {
window.setTimeout(handler, 0);
});
container.appendChild(inputEl);
this.editFields_.push(inputEl);
......
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