Skip to content

Commit

Permalink
fix(ui5-list): improved items initial rendering (#9283)
Browse files Browse the repository at this point in the history
Fixed a bug where the list items are not properly updated initially.

Fixes: #9266
  • Loading branch information
plamenivanov91 authored Jun 21, 2024
1 parent 740d30e commit 2623882
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/main/src/List.ts
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,11 @@ class List extends UI5Element {
* **Note:** Use `ui5-li`, `ui5-li-custom`, and `ui5-li-group` for the intended design.
* @public
*/
@slot({ type: HTMLElement, "default": true })
@slot({
type: HTMLElement,
"default": true,
invalidateOnChildChange: true,
})
items!: Array<ListItemBase | ListItemGroup>;

/**
Expand Down

0 comments on commit 2623882

Please sign in to comment.