Commit 9f55c023 authored by Stephen Sawchuk's avatar Stephen Sawchuk Committed by Sindre Sorhus

fix yui .focus() spec deviation

RE #635

Closes #646
parent 3df87c7b
......@@ -58,8 +58,12 @@ YUI.add('todo-view', function (Y) {
// Turn on editing mode for the Todo by exposing the input field.
edit: function () {
var input = this.get('inputNode');
this.get('container').addClass('editing');
this.get('inputNode').focus();
// place cursor at the end of the line
input._node.value = input._node.value;
input.focus();
},
// Get the value from our input field while hiding it, and
......
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