-
Notifications
You must be signed in to change notification settings - Fork 354
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
First selected row visible #32
Conversation
This change ensures first selected row visibility.
@@ -39,6 +39,7 @@ Ember.Table.RowSelectionMixin = Ember.Mixin.create | |||
rows.objectAt(index).get('content') | |||
else # setter | |||
@_calculateSelectionIndices(value) | |||
@ensureVisible(@get('selectionIndices.0')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey @karlguillotte I think this makes sense. Do you think you could change it to @get('selectionIndices.firstObject') instead of @get('selectionIndices.0')?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
selectionIndices is actually a Ember.Set where keys are the indices.
Even if the Ember.Set API has firstObject property I tried selectionIndices.firstObject and it does not work.
hey @karlguillotte could you rebase off master so I could merge it in. Thanks |
This change ensures first selected row visibility.