From a46227d03c45ba34dc8a72c5b11fd1076dfba698 Mon Sep 17 00:00:00 2001 From: Jose Carcamo Date: Fri, 17 Jan 2025 17:51:56 -0800 Subject: [PATCH] Replaced conditional with use of isHidden --- .../src/components/stepper-item/stepper-item.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/calcite-components/src/components/stepper-item/stepper-item.tsx b/packages/calcite-components/src/components/stepper-item/stepper-item.tsx index 173cad93c06..cfa60116345 100644 --- a/packages/calcite-components/src/components/stepper-item/stepper-item.tsx +++ b/packages/calcite-components/src/components/stepper-item/stepper-item.tsx @@ -32,6 +32,7 @@ import { import { IconNameOrString } from "../icon/interfaces"; import { useT9n } from "../../controllers/useT9n"; import type { Stepper } from "../stepper/stepper"; +import { isHidden } from "../../utils/component"; import { CSS } from "./resources"; import T9nStrings from "./assets/t9n/messages.en.json"; import { styles } from "./stepper-item.scss"; @@ -281,8 +282,7 @@ export class StepperItem extends LitElement implements InteractiveComponent, Loa private handleItemClick(event: MouseEvent): void { if ( this.disabled || - this.hiddenItem || - this.el.hidden || + isHidden(this.el) || (this.layout === "horizontal" && event .composedPath()