Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
rivets
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
fadc0fc5
authored
2013-03-09 02:45:05 +1100
by
Jesse Clark
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Avoid changing cursor position in active inputs with value bindings
1 parent
5cd20248
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/rivets.coffee
src/rivets.coffee
View file @
fadc0fc
...
...
@@ -308,7 +308,7 @@ Rivets.binders =
routine
:
(
el
,
value
)
->
if
el
.
type
is
'select-multiple'
o
.
selected
=
o
.
value
in
value
for
o
in
el
if
value
?
else
else
if
value
isnt
el
.
value
el
.
value
=
if
value
?
then
value
else
''
text
:
(
el
,
value
)
->
...
...
Please
register
or
sign in
to post a comment