Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added support for paste/autocompletion #6

Open
pdoria opened this issue Apr 5, 2013 · 2 comments
Open

added support for paste/autocompletion #6

pdoria opened this issue Apr 5, 2013 · 2 comments

Comments

@pdoria
Copy link

pdoria commented Apr 5, 2013

No support for pasted/auto-completion, so inserted this @ line 490:

// weren't we forgeting about paste/auto-completion? ;)
this.$element.bind('input paste', function(e) {
var email = $(this).val();

            if(outerScope.timeoutId){
                clearTimeout(outerScope.timeoutId);
            }

            if(outerScope.isPendingStatus){
                outerScope.timeoutId = setTimeout(function(){
                    verifyEmailCallback(email);
                }, 500);
            }else{
                verifyEmailCallback(email);
            }
    });
@typerandom
Copy link
Contributor

Oh snap, missed that part. :-) Thanks for providing a solution! 👍

@dciancu
Copy link

dciancu commented Jun 21, 2014

I have the latest version available on github and it works great when I paste something, but autocompletion only works when I select a value from the dropdown list with the arrow keys/mouse hover and press enter, if I click on the value it doesn't get verified and remains in the previous state indifferent that the new email address is valid or not. I have tested this in Firefox 30.0 and Chrome 34.0 and also in IE8. Also the same thing happens with the IE clear text on input elements, I've tested it with IE 11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants