knockout
knockout copied to clipboard
Computed - write gets wrong(doubled) value on mobile browsers
When you types (really) fast - a value which comes to 'write' gets doubled sometimes. Best way to see - use Samsung Internet browser. Live example. http://jsfiddle.net/onemantooo/LkqTU/62526/
I'm not exactly sure why this happens. It also seems hard to duplicate, although I did see what you described once.
A good workaround is to use the textInput binding instead of value.
textInput gives the same result
Something else I just noticed is that your fiddle is using an old version of Knockout (3.2.0). Can you try with the latest?
The textInput binding specifically checks for duplicate values. So if textInput has the same problem, then perhaps the value isn't really duplicated.
Can you try with the latest?
Same result - http://jsfiddle.net/onemantooo/LkqTU/62890/
Have you tried with the textInput binding?