Skip to content

v1.2.0

Latest
Compare
Choose a tag to compare
@smastrom smastrom released this 10 Dec 21:39
2f4b31a

Release notes

What's new

  • Add the ability to keep entering the email when a suggestion is focused also if typing @ and .. Before this release only alphanumeric charactes were allowed.
  • Suggestions dropdown is now closed when the window loses its focus or if right-clicking outside of the <Email /> component.

Accessibility improvements and fixes

  • Fix aria-selected attribute to always be false instead of following the focus.
  • Dynamically set role="combobox" only when suggestions are displayed.
  • Dynamically update input's type to email instead of text before focusing and recovering cursor position.

Deprecations

  • Deprecate customPrefix and wrapperId props which were redundant.
  • Deprecate isInvalid prop. Since v1.0.0 the attribute aria-invalid can be passed directly to the input element so this was unnecessary.