Skip to content

Commit 7b68424

Browse files
committed
fix(breadcrumb): allow null in useRef type for Vue compatibility
- Changed useRef type from HTMLElement to HTMLElement | null - Fixes Vue TypeScript compilation error where null is not assignable to HTMLElement - Maintains fix for Stencil Host wrapper issue
1 parent 7b95882 commit 7b68424

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/components/src/components/breadcrumb/breadcrumb.lite.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ useDefaultProps<DBBreadcrumbProps>({
1919
});
2020

2121
export default function DBBreadcrumb(props: DBBreadcrumbProps) {
22-
const _ref = useRef<HTMLElement>(null);
22+
const _ref = useRef<HTMLElement | null>(null);
2323

2424
const state = useStore<DBBreadcrumbState>({
2525
isExpanded: false,

0 commit comments

Comments
 (0)