-
Notifications
You must be signed in to change notification settings - Fork 437
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
Question about "looseIndexOf" in ui-select #451
Comments
Hi @macgyver, That's a good point, the component could use For cases where it's not available, we need to keep |
It's optional as a prop, but it seems like the keys are always defined, with sensible defaults: |
That's true, but the problem with depending on that is that when the user sets the { class: 'my-class', image: 'my_image_field' } you end up with no This might be less of an issue in practice though - so we can check if |
Ah, I didn't understand how the defaults was being used - I assumed incorrectly that any specified keys would be assigned over the defaults. At any rate I think you're right, checking for the presence of the If you're curious about my use-case, I'm storing the selected results of the ui-select as an object but weeks later when I go to re-populate the select the |
Makes sense, will add. |
Since there is already a
key
specified for the options, would it not make more sense to just compare the keys of the objects in theisOptionSelected
method?The text was updated successfully, but these errors were encountered: