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

select2 templateSelection be multiple call bug v4.0.3 #4529

Closed
dung13890 opened this issue Aug 12, 2016 · 3 comments
Closed

select2 templateSelection be multiple call bug v4.0.3 #4529

dung13890 opened this issue Aug 12, 2016 · 3 comments

Comments

@dung13890
Copy link

dung13890 commented Aug 12, 2016

hi, i used select2 but when i use templateSeclection and console.log() then this is be repeatedly

       templateResult: function (product) {
            if (typeof product.id == 'undefined' || product.loading) {
                return 'waiting...';
            }
            return product.name;

        },
        templateSelection: function (product, a) {  
            // it has been called repatedly
             console.log(product);
        },

please help me?

@carlosrgzm
Copy link

I'm having the same problem. Any solution?

@ahabunreal
Copy link

same problem here.. running it from inside jquery modal

@alexweissman
Copy link
Contributor

Closing this as a duplicate of #3616.

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

No branches or pull requests

4 participants