Skip to content

v0.0.129

Compare
Choose a tag to compare
@ItsJonQ ItsJonQ released this 09 Jan 17:11

UnitInput: Improve initial unit parsing handling to better serve values like "auto" #213

This update fixes the handling of values like auto for UnitInput. Previously, auto may be assigned as a unit value.

This is because of the unit parsing function as it attempts to split ${number}${unit} into [value,unit]. Since auto doesn't start with a number, the unit parser thinks that auto is the unit.

The solution was to add some validation for the initial store state, taking into consideration the cssProp, if provided.