-
Notifications
You must be signed in to change notification settings - Fork 85
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
refactor!: update avatar group to not use Polymer splices API #8145
Conversation
}, | ||
|
||
/** @private */ | ||
__items: { |
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.
The __items
property was unused so I removed it.
a6847ef
to
d061382
Compare
@@ -231,17 +231,6 @@ class AvatarGroup extends ResizeMixin(OverlayClassMixin(ElementMixin(ThemableMix | |||
value: () => [], | |||
}, | |||
|
|||
/** @private */ | |||
__maxReached: { |
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 property was only used in one observer so I decided to inline it there, so that we only have one observer for updating overflow avatar instead of two different ones.
8467944
to
f459ecb
Compare
|
This ticket/PR has been released with Vaadin 24.6.0.alpha4 and is also targeting the upcoming stable 24.6.0 version. |
Description
Removed usage of
.splice()
API fromvaadin-avatar-group
and removedcalculateSplices()
usage.From now one, mutating
items
property is no longer supported, instead it needs to be re-assigned.Marked as a behavior altering change because of that (but Flow counterpart shouldn't be affected).
Also updated observers syntax which is a pre-requisite for creating LitElement based version.
Type of change