-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🌱 Refactor
Autocomplete
and HookFormAutocomplete
Refactor `Autocomplete` and related - Use a complex object for its `options` and `selections` props. This allows for a richer experience with the typeahead component, select list, and selected label list. - Minimize the states in use and to replace `useEffect` in favor of `useMemo`. - An `AutocompleteOptionProp` allows rendering a name, a separate name in the selected label list, and a tooltip for the selected label. - Renamed `ItemsSelect` to `HookFormAutocomplete` since all it needs to do now is wrap a react-hook-form around an `Autocomplete` Signed-off-by: Scott J Dickerson <sdickers@redhat.com>
- Loading branch information
Showing
4 changed files
with
208 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.