Components: rework focus/blur callback behavior across composite components #39615
Open
1 of 7 tasks
Labels
[Feature] Component System
WordPress component system
[Package] Components
/packages/components
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
We should align composite components with focusable sub-components (e.g.
UnitControl
,RangeControl
, ...) so that they share the same behavior when it comes to how theonFocus
/onBlur
callbacks are firedSee #39589 (review) for more details
What is your proposed solution?
onFocus
andonBlur
callbacks fire if any sub-component is focused or blurredList of components
UnitControl
onBlur
(UnitControl
: forwardonBlur
prop as expected #39589)onFocus
RangeControl
onBlur
onFocus
The text was updated successfully, but these errors were encountered: