close
Skip to content

Box Control range slider doesn't set a unit initially #61410

@albanyacademy

Description

@albanyacademy

Description

When using the __experimentalBoxControl with all values as null, the unit for each side is only set when the UnitControl itself is changed. When one uses the RangeControl first and drags to a number, the value received is just the number itself without a unit attached.

Step-by-step reproduction instructions

  1. Use a box control with a default value empty/null;
  2. set the onChange to console log the value;
  3. observe that when only dragging the range slider the value returned is only a number
  4. observe that unit only gets added when unitcontrol is used

Screenshots, screen recording, code snippet

https://www.screencast.com/t/I3RDlCL9ht2

Environment info

wp 6.5.2

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Metadata

Metadata

Assignees

Labels

[Package] Components/packages/components[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions