assistant2: Uniquely identify remove buttons on ContextPill
s (#22115)
This PR ensures that the remove buttons on the `ContextPill`s are uniquely identified. Release Notes: - N/A
This commit is contained in:
parent
eb74332e96
commit
373854be46
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ impl RenderOnce for ContextPill {
|
|||
.child(Label::new(self.context.name.clone()).size(LabelSize::Small))
|
||||
.when_some(self.on_remove, |parent, on_remove| {
|
||||
parent.child(
|
||||
IconButton::new("remove", IconName::Close)
|
||||
IconButton::new(("remove", self.context.id.0), IconName::Close)
|
||||
.shape(IconButtonShape::Square)
|
||||
.icon_size(IconSize::XSmall)
|
||||
.on_click({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue