You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
NumberControl: introduce string as a type for the value prop #45949
In the process, we may want to extract some basic utilities outside of each single components (number to string / string to number conversions), and move them to the shared utils folder.
If needed, add unit tests to make sure that both string and number values for the value prop are handled correctly
Find and update all derived components to use string instead of number. If possible, keep iterating up the chain of derived components, until only string is used
UnitControl
RangeControl
AnglePickerControl
...
When all usages are migrated to string, deprecated the number type for value — starting from the "leaves" derived components, and walking backwards all the way towards NumberControl. The code handling the number case will left around for backward-compat.
Closing as not planned. Making changes to NumberControl without causing backwards-compatibility issues has proved tricky over the years, and our efforts are now focused on the @wordpress/ui package.
Activity
ciampo commentedon Sep 3, 2026
Closing as not planned. Making changes to
NumberControlwithout causing backwards-compatibility issues has proved tricky over the years, and our efforts are now focused on the@wordpress/uipackage.