-
Notifications
You must be signed in to change notification settings - Fork 113
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
md-checks optionLabelPath appears dysfunctional #120
Comments
I solved this by changing // addon/components/selectable-item-group.js
if (valuePath && labelPath) {
return Ember.A(
map(content, el => {
return {value: get(el, valuePath), label: get(el, labelPath)};
})
);
} else {
return Ember.A(
map(content, el => {
return {value: el, label: el};
})
);
} if else if (labelPath) {
return Ember.A(
map(content, el => {
return { value: el, label: get(el, labelPath) };
});
);
} or this requirement could be documented! Sorry for the confusion! |
@joshpfosi with your example model, there's an implicit {{md-checks
selection=selectedLessons
content=lessons
optionValuePath="content.id"
optionLabelPath="content.title"
disabled=school.isLaunched}} We're aiming for alignment with |
I see. That makes sense. Thanks for the clarification :) |
I am using this component as
and the
optionLabelPath
is being completely ignored. The relevant lesson model is:The text was updated successfully, but these errors were encountered: