Skip to content

Commit

Permalink
Replaced conditional with use of isHidden
Browse files Browse the repository at this point in the history
  • Loading branch information
josercarcamo committed Jan 18, 2025
1 parent 1d4a2d3 commit a46227d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit a46227d

Please sign in to comment.