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

use pure number as option text will cause error #2543

Closed
neoblackcap opened this issue Jul 17, 2014 · 1 comment
Closed

use pure number as option text will cause error #2543

neoblackcap opened this issue Jul 17, 2014 · 1 comment

Comments

@neoblackcap
Copy link

when I use a pure number as the option text in result. select 2 will use toUpCase method first, and a pure number doesn't have it, it will cause error.

@kevin-brown
Copy link
Member

The text should be a string (like regular text), same with the id.

We have started enforcing this in 4.0, which you can find at https://github.com/ivaynberg/select2/pull/2743.

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

2 participants