diff --git a/src/components/tree-item/tree-item.tsx b/src/components/tree-item/tree-item.tsx index a1c44856f19..9acf74ab8f1 100644 --- a/src/components/tree-item/tree-item.tsx +++ b/src/components/tree-item/tree-item.tsx @@ -118,9 +118,9 @@ export class TreeItem implements ConditionalSlotComponent, InteractiveComponent @Watch("selectionMode") getselectionMode(): void { this.isSelectionMultiLike = - this.selectionMode === TreeSelectionMode.Multiple || - this.selectionMode === TreeSelectionMode.Multi || - this.selectionMode === TreeSelectionMode.MultiChildren; + this.selectionMode === "multiple" || + this.selectionMode === "multi" || + this.selectionMode === "multichildren"; } //-------------------------------------------------------------------------- @@ -185,14 +185,12 @@ export class TreeItem implements ConditionalSlotComponent, InteractiveComponent render(): VNode { const rtl = getElementDir(this.el) === "rtl"; - const showBulletPoint = - this.selectionMode === TreeSelectionMode.Single || - this.selectionMode === TreeSelectionMode.Children; + const showBulletPoint = this.selectionMode === "single" || this.selectionMode === "children"; const showCheckmark = - this.selectionMode === TreeSelectionMode.Multi || - this.selectionMode === TreeSelectionMode.Multiple || - this.selectionMode === TreeSelectionMode.MultiChildren; - const showBlank = this.selectionMode === TreeSelectionMode.None && !this.hasChildren; + this.selectionMode === "multi" || + this.selectionMode === "multiple" || + this.selectionMode === "multichildren"; + const showBlank = this.selectionMode === "none" && !this.hasChildren; const chevron = this.hasChildren ? ( ; const checkbox = - this.selectionMode === TreeSelectionMode.Ancestors ? ( + this.selectionMode === "ancestors" ? (