Skip to content

Commit 957170a

Browse files
committed
Breadcrumb: fix getMeasurementRender for React 19
1 parent a991e4e commit 957170a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/ui/src/breadcrumb/measurement-render.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ const EVENT_HANDLER_PATTERN = /^on[A-Z]/;
66
function isBehaviorProp( propName: string ) {
77
return (
88
propName === 'id' ||
9-
propName === 'ref' ||
109
propName === 'tabIndex' ||
1110
EVENT_HANDLER_PATTERN.test( propName )
1211
);
@@ -15,7 +14,8 @@ function isBehaviorProp( propName: string ) {
1514
function getMeasurementProps( props: Record< string, unknown > ) {
1615
return Object.fromEntries(
1716
Object.entries( props ).filter(
18-
( [ propName ] ) => ! isBehaviorProp( propName )
17+
( [ propName ] ) =>
18+
! isBehaviorProp( propName ) && propName !== 'ref'
1919
)
2020
);
2121
}

0 commit comments

Comments
 (0)