Skip to content

Switching from Silvio Moreto's to this - Issues transferring existing data #142

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

Open
Owizardo opened this issue Sep 18, 2016 · 1 comment

Comments

@Owizardo
Copy link

Hi there,

Just recently discovered your tool, and so far things are looking great. I did however bump into a problem, I have a whole year's worth of data entries (about 900 entries) done with Silvio Moreto's bootstrap select, my entries look like this:

"Red,Blue,Yellow,Green"

For some reason the drop down thinks I have 20 items selected when in fact nothing is selected. From what i've noticed it seems to be counting the amount of charaters and returning the total as selected. When i select an item on the list, it will reajust and then start counting correctly.

Do I need to change my entries to the appropriate format or is there a simple way to fix this?

@Owizardo Owizardo changed the title Switching from Silvio Moreto's to your version - Issues transferring existing data Switching from Silvio Moreto's to this - Issues transferring existing data Sep 18, 2016
@lordfriend
Copy link
Owner

lordfriend commented Sep 19, 2016

What you need do is transforming your entries into array. For example, model = "Red,Blue,Yellow,Greed".split(',') then <ol class="nya-bs-select" ng-model="model" multiple> /* some nya-bs-option directive */ </ol>

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