jquery.placeholder icon indicating copy to clipboard operation
jquery.placeholder copied to clipboard

Bug when type very very fast

Open marioizquierdo opened this issue 13 years ago • 0 comments

If someone focus the textfield before javascript is loaded, and then write after javascript loaded (so the placeholder text was added to the field), the placeholder text will not be erased.

The solution for this is to bind also the "keydown" event in the eventlistener's function, so if someone do focus before javascript is loaded, when he try to write, the placeholder text will be deleted as well.

I mean, in the code, instead of .focus(function(...)) it should be .bind('focus', 'keydown')

marioizquierdo avatar May 10 '11 20:05 marioizquierdo