fadc0fc5 by Jesse Clark

Avoid changing cursor position in active inputs with value bindings

1 parent 5cd20248
...@@ -308,7 +308,7 @@ Rivets.binders = ...@@ -308,7 +308,7 @@ Rivets.binders =
308 routine: (el, value) -> 308 routine: (el, value) ->
309 if el.type is 'select-multiple' 309 if el.type is 'select-multiple'
310 o.selected = o.value in value for o in el if value? 310 o.selected = o.value in value for o in el if value?
311 else 311 else if value isnt el.value
312 el.value = if value? then value else '' 312 el.value = if value? then value else ''
313 313
314 text: (el, value) -> 314 text: (el, value) ->
......