Skip to content

Releases: ItsJonQ/g2

v0.0.129

09 Jan 17:11
Compare
Choose a tag to compare

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

09 Jan 17:05
Compare
Choose a tag to compare

Dropdown: Add z-index and MenuItem normalization. UnitInput: Fix non-unit to unit conversion #212

v0.0.127

06 Jan 21:04
Compare
Choose a tag to compare
  • Fix: Text Input when value changes externally it becomes undeletable #204
  • Fix: Fix: Font size picker calls on change on each rerender #201

Thanks @jorgefilipecosta !

SelectDropdown: Focus "select" button on select action

05 Jan 14:46
Compare
Choose a tag to compare

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.

Screen Capture on 2021-01-04 at 17-30-37

GIF above shows the Select element being focused (highlighted) after selecting an item.

Resolves #208