-
Notifications
You must be signed in to change notification settings - Fork 83
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
selected property doesn't work #25
Comments
@domurtag Thanks for the report. Apparently the plugin is trying to set the I'll commit a fix soon. |
* Moved initial select to a later phase of the initialisation process.
@domurtag I've updated your jsfiddle: http://jsfiddle.net/Qxaa9/1/ Please confirm that the problem has been solved. I'll merge it into the master branch once I get confirmation. Thanks. |
Your example works, but if I set the selected value in the JSON it doesn't work. I'm not sure what value I should use for the http://jsfiddle.net/Qxaa9/2/ |
* Added logic to set the selected item when source is an array.
@domurtag Apparently I missed that one. Fixed in dev. The method to set the selected item when providing an array as data source is by setting |
Is it safe to use the dev branch or should I wait until the fix is merged to master? |
@domurtag I'll merge this into the master branch soon. |
Thanks for fixing this, it might be worth mentioning in the docs that the value of the selected property should be |
Here's a JS Fiddle demo that demonstrates the problem described below.
I tried setting the following as the source JSON
But the 3rd option wasn't selected. I also tried
But this didn't work either. None of the following work either:
The text was updated successfully, but these errors were encountered: