Avoid changing cursor position in active inputs with value bindings
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -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) -> | ... | ... |
-
Please register or sign in to post a comment