starter-kit icon indicating copy to clipboard operation
starter-kit copied to clipboard

hello world example sometimes misses characters

Open silverbucket opened this issue 11 years ago • 4 comments

If you type a name fast into the input, the onchange events don't always complete the name correctly. A few characters can end up missing from the end of the "Hello " area.

silverbucket avatar Oct 11 '14 12:10 silverbucket

Not sure if this is a starter-kit or remotestorage.js bug, but figured I'd report it here to see what you think @michielbdejong - it's easily reproduceable, just type a name fastly into the input. For instance, I tried bart simpson and kendle moore and it happened with both when typing very fast.

silverbucket avatar Oct 11 '14 12:10 silverbucket

looks like there's definitely a bug, but to me it looks slightly different: when i typed 'asdfasdfasdf' quickly, i first saw 'asdfasdfasdf' appear, and then it changed to 'asdf'. then i typed 'qwerqwerqwer' behind it, and saw 'asdfasdfasdfqwer' appear. then i typed a single 'q' and the whole 'asdfasdfasdfqwerqwerqwerq' appeared.

@silverbucket try typing a single 'x' or whatever after your 'bart simpson', does that make it correct to 'bart simpsonx'?

marking as easy.

michielbdejong avatar Oct 11 '14 12:10 michielbdejong

Yup, exactly the same behavior you describe. It seems to get an older change event after the latest, deleting the last few chars. Then with any new character entered, the full text is restored + new character.

silverbucket avatar Oct 11 '14 12:10 silverbucket

Looks like a problem with the library probably, opened an issue there ^

michielbdejong avatar Oct 16 '14 14:10 michielbdejong