-
Notifications
You must be signed in to change notification settings - Fork 77
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(combobox-item): fix rendering tied to named-slot content #10450
Conversation
// -------------------------------------------------------------------------- | ||
// | ||
// Lifecycle | ||
// | ||
// -------------------------------------------------------------------------- | ||
|
||
connectedCallback(): void { | ||
// todo: refactor: if grandparent is removed, this will not update | ||
this.ancestors = getAncestors(this.el); |
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.
if grandparent is removed, I think this would get stale and incorrect. I don't think it would update because connectedCallback of a grandparent wouldn't trigger anything here.
Do we want to open an issue for this?
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.
Yeah, we should revisit this. Can you create an issue to refactor this logic and possibly move it up to combobox
?
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.
created #10459
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.
🎉🌮🦖
// -------------------------------------------------------------------------- | ||
// | ||
// Lifecycle | ||
// | ||
// -------------------------------------------------------------------------- | ||
|
||
connectedCallback(): void { | ||
// todo: refactor: if grandparent is removed, this will not update | ||
this.ancestors = getAncestors(this.el); |
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.
Yeah, we should revisit this. Can you create an issue to refactor this logic and possibly move it up to combobox
?
Related Issue: #6059
Summary
getSlotted
utilityslotchange
event and@State
variables to update the display of elements.