Skip to content

Commit 18eca27

Browse files
authored
Merge a385463 into c352351
2 parents c352351 + a385463 commit 18eca27

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎packages/ui/CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030

3131
### Bug Fixes
3232

33+
- `Breadcrumb`: Keep a custom renderer's ref on the visible item ([#84069](https://github.com/WordPress/gutenberg/pull/84069)).
3334
- `RadioGroup`: Preserve value type inference in callbacks. `RadioGroupControl`: Type selected values and callbacks as strings to match its items ([#83872](https://github.com/WordPress/gutenberg/pull/83872)).
3435
- `Menu`: Align the first submenu item's label with its parent label while preserving item centering, including when their heights differ ([#84031](https://github.com/WordPress/gutenberg/pull/84031)).
3536
- `Checkbox`: Prevent rounded themes from making checkboxes circular. ([#83526](https://github.com/WordPress/gutenberg/pull/83526))

‎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)