Releases: ItsJonQ/g2
v0.0.129
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.
v0.0.128
v0.0.127
SelectDropdown: Focus "select" button on select action
This update ensures that the "select" (button
) is focused after a selection action is made (either with mouse events or keyboard events).
The solution involved creating an internal ref
for the button
element, and (force) focusing that element within the close
callback.
GIF above shows the Select element being focused (highlighted) after selecting an item.
Resolves #208