diff --git a/packages/calcite-components/src/components/list/list.tsx b/packages/calcite-components/src/components/list/list.tsx index 0b033ab54a1..c46e9fc6c56 100755 --- a/packages/calcite-components/src/components/list/list.tsx +++ b/packages/calcite-components/src/components/list/list.tsx @@ -38,7 +38,8 @@ import { useT9n } from "../../controllers/useT9n"; import type { ListItem } from "../list-item/list-item"; import type { Filter } from "../filter/filter"; import type { ListItemGroup } from "../list-item-group/list-item-group"; -import { CSS, debounceTimeout, SelectionAppearance, SLOTS } from "./resources"; +import { DEBOUNCE } from "../../utils/resources"; +import { CSS, SelectionAppearance, SLOTS } from "./resources"; import T9nStrings from "./assets/t9n/messages.en.json"; import { ListElement } from "./interfaces"; import { ListDragDetail, ListDisplayMode, ListMoveDetail } from "./interfaces"; @@ -148,7 +149,7 @@ export class List this.setActiveListItem(); this.updateSelectedItems(); this.setUpSorting(); - }, debounceTimeout); + }, DEBOUNCE.nextTick); private visibleItems: ListItem["el"][] = []; diff --git a/packages/calcite-components/src/components/list/resources.ts b/packages/calcite-components/src/components/list/resources.ts index f48167b3092..a5533ba6578 100644 --- a/packages/calcite-components/src/components/list/resources.ts +++ b/packages/calcite-components/src/components/list/resources.ts @@ -8,8 +8,6 @@ export const CSS = { assistiveText: "assistive-text", }; -export const debounceTimeout = 0; - export type SelectionAppearance = "border" | "icon"; export const SLOTS = {