From aa5596986a876f6dc2113acd50f78c067e2b2fa3 Mon Sep 17 00:00:00 2001 From: Stephen Sawchuk Date: Fri, 2 Aug 2013 15:21:28 -0400 Subject: [PATCH] fix yui .focus() spec deviation. --- architecture-examples/yui/js/views/todoview.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/architecture-examples/yui/js/views/todoview.js b/architecture-examples/yui/js/views/todoview.js index 50de1b6f1e..176a837c7a 100644 --- a/architecture-examples/yui/js/views/todoview.js +++ b/architecture-examples/yui/js/views/todoview.js @@ -58,8 +58,11 @@ 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(); + input._node.value = input._node.value; + input.focus(); }, // Get the value from our input field while hiding it, and