knockout icon indicating copy to clipboard operation
knockout copied to clipboard

Computed - write gets wrong(doubled) value on mobile browsers

Open onemantooo opened this issue 7 years ago • 5 comments
trafficstars

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/

onemantooo avatar Sep 24 '18 03:09 onemantooo

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.

mbest avatar Sep 24 '18 07:09 mbest

textInput gives the same result

onemantooo avatar Sep 24 '18 07:09 onemantooo

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.

mbest avatar Sep 24 '18 17:09 mbest

Can you try with the latest?

Same result - http://jsfiddle.net/onemantooo/LkqTU/62890/

onemantooo avatar Sep 27 '18 08:09 onemantooo

Have you tried with the textInput binding?

mbest avatar Sep 30 '19 19:09 mbest