Skip to content

Commit

Permalink
feat!: update Autosuggest component to support freeform and selected …
Browse files Browse the repository at this point in the history
…values

This updates the Autosuggest component to provide the consumer with:
* The value entered in the textbox by the user
* The selected value (as it is displayed in the dropdown)
* The id of the selected option

This also allows the consumer to determine if the Autosuggest component should be in an error state when
* No text has been entered
* Text has been entered, but not selection has been made
* An external validation check has failed - "customError"

The consumer will provide error messages for the appropriate error states

BREAKING CHANGE: value of Autosuggest component is now an object instead of a string
BREAKING CHANGE: Autosuggest component now uses onChange instead of onSelected
BREAKING CHANGE: Autosuggest component now takes in different error messages for value/selection required, and custom errors
  • Loading branch information
brian-smith-tcril committed Dec 8, 2023
1 parent 852889f commit d69e3d3
Show file tree
Hide file tree
Showing 3 changed files with 326 additions and 185 deletions.
Loading

0 comments on commit d69e3d3

Please sign in to comment.