-
Notifications
You must be signed in to change notification settings - Fork 843
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[EuiValidatableControl] Fixed ref not being handled properly when use…
…d with react-hook-form (#4001) * [EuiValidatableControl] Fixed ref not being handled properly when used with react-hook-form - Fix react-hook-form's reset() not working properly with EuiFieldText and more - See react-hook-form/react-hook-form#2637 * Updated changelog * [EuiValidatableControl] Reimplemented using react hooks - Utilize useMemo() to prevent stable ref from being called on every render * [EuiValidatableControl] Added more unit tests for ref management * [EuiValidatableControl] Replace useMemo with useCallback Co-authored-by: Chandler Prall <[email protected]>
- Loading branch information
1 parent
6661ca9
commit eee0b3b
Showing
3 changed files
with
140 additions
and
40 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
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
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