Commit 964fcf0
fix(profile-search): prevent form.reset() from clearing first character on input (@AzureNightlock) (#7851)
### Description
This PR: Fixes the first character being skipped on input by only
clearing the form when the page isn't open.
Changes Made:
* form.reset() runs only when isOpen is false, Hence clearing the form
when the user leaves the page. When the user comes back to the page, the
form is cleared instead of clearing when the user first enters the page
Additional Changes Made:
* Removed the unused catch parameter ("e") from onChangeAsync.
* showIndicator doesn't show up when the field is blank
### Checks
- [x] Check if any open issues are related to this PR; if so, be sure to
tag them below.
- [x] Make sure the PR title follows the Conventional Commits standard.
(https://www.conventionalcommits.org for more info)
- [x] Make sure to include your GitHub username prefixed with @ inside
parentheses at the end of the PR title.
Closes #7850
Co-authored-by: Christian Fehmer <fehmer@users.noreply.github.com>1 parent 2f7b439 commit 964fcf0
1 file changed
Lines changed: 3 additions & 2 deletions
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
| 48 | + | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
80 | | - | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| |||
0 commit comments