Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
todomvc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sven Franck
todomvc
Commits
9f55c023
Commit
9f55c023
authored
Aug 06, 2013
by
Stephen Sawchuk
Committed by
Sindre Sorhus
Aug 06, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix yui .focus() spec deviation
RE #635 Closes #646
parent
3df87c7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
architecture-examples/yui/js/views/todoview.js
architecture-examples/yui/js/views/todoview.js
+5
-1
No files found.
architecture-examples/yui/js/views/todoview.js
View file @
9f55c023
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment