diff --git a/packages/calcite-components/src/components/list/list.e2e.ts b/packages/calcite-components/src/components/list/list.e2e.ts index c1c94207e81..0dccb24cc46 100755 --- a/packages/calcite-components/src/components/list/list.e2e.ts +++ b/packages/calcite-components/src/components/list/list.e2e.ts @@ -391,10 +391,12 @@ describe("calcite-list", () => { expect(await isElementFocused(page, "#two")).toBe(true); + const calciteListChange = await page.spyOnEvent("calciteListChange"); const listItemThree = await page.find("#three"); listItemThree.setProperty("disabled", false); await page.waitForChanges(); await page.waitForTimeout(listDebounceTimeout); + expect(calciteListChange).toHaveReceivedEventTimes(0); await list.press("ArrowDown"); @@ -404,6 +406,7 @@ describe("calcite-list", () => { listItemFour.setProperty("closed", false); await page.waitForChanges(); await page.waitForTimeout(listDebounceTimeout); + expect(calciteListChange).toHaveReceivedEventTimes(0); await list.press("ArrowDown"); diff --git a/packages/calcite-components/src/components/list/list.tsx b/packages/calcite-components/src/components/list/list.tsx index 391125d83d5..ba60916ca83 100755 --- a/packages/calcite-components/src/components/list/list.tsx +++ b/packages/calcite-components/src/components/list/list.tsx @@ -279,7 +279,7 @@ export class List implements InteractiveComponent, LoadableComponent, SortableCo } event.stopPropagation(); - this.updateListItems(true); + this.updateListItems(); } @Listen("calciteInternalListItemGroupDefaultSlotChange")