remotestorage / starter-kit

The quickest way to get started with a local remoteStorage server and a Hello World app as your starting point
92 stars 9 forks source link

hello world example sometimes misses characters #21

Open silverbucket opened 10 years ago

silverbucket commented 10 years ago

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 commented 10 years ago

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.

michielbdejong commented 10 years ago

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.

silverbucket commented 10 years ago

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.

michielbdejong commented 10 years ago

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