Skip to content

Commit

Permalink
fix: don't set translation if no element (#2454)
Browse files Browse the repository at this point in the history
Signed-off-by: Paul-Xavier Ceccaldi <[email protected]>
  • Loading branch information
P1X3L authored Jun 7, 2024
1 parent 887c47f commit 968522c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/Breadcrumb/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export const BreadcrumbComponent = forwardRef<'div', BreadcrumbProps>(
})

function translate(element: HTMLElement, value: number) {
if (!element) return
element.style.transform = `scale3d(${value}, 1, 1)`
}

Expand Down

0 comments on commit 968522c

Please sign in to comment.