-
Notifications
You must be signed in to change notification settings - Fork 286
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
Fix more items indicator sometimes not appearing #1086
Conversation
@@ -6,10 +6,10 @@ import { A } from '@ember/array'; | |||
export default Component.extend({ | |||
tagName: '', | |||
|
|||
isArray: computed('properties', function () { |
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.
Should we leave this computed and switch it to 'properties.[]
to ensure it updates?
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.
In this case I don't think it matters since it's only called once.
if (this.get('isArray') && this.get('sorted.length') > 100) { | ||
let props = A(this.get('sorted')); | ||
if (this.isArray()) { | ||
const item = props.findBy('name', 'length'); |
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.
What is this doing?
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.
This is to put the length property at the top, since otherwise it will be cutoff. Or it will look wierd at the end
@patricklx any updates here? Would like to get this in if it's still needed. |
@patricklx do we still need these changes? If so, could you please rebase? |
@patricklx do we still need this PR? |
Yes, it's still needed. It also makes sure that array items receive updates |
Also, put the length property at the top