yairEO / fancyInput

Makes typing in input fields fun with CSS3 effects
1.93k stars 283 forks source link

Retype Fixed #24

Closed adrianmiranda closed 10 years ago

adrianmiranda commented 11 years ago

fancyInput.fillText('', $('#input')[0]);

yairEO commented 11 years ago

A very strange pull request, wouldn't you say...?

adrianmiranda commented 11 years ago

Just because it's small does not mean it is strange. When you use keyboard enter key, the caret is lost and it is impossible to retype something without this line. like this: http://adrianmiranda.herokuapp.com

yairEO commented 11 years ago

on "enter" all you need to do is clear the DIV like this fancyInput.clear( input.nextElementSibling ); and clear the input value as well. The logic should be kept outside the plugin, I think.

adrianmiranda commented 11 years ago

Ok, sorry, ignore it!