Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Blur Method to Improve Component Focus Handling #8890

Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
7fff299
Add field validation to resolve the Update Profile Issue
JavidSumra Oct 17, 2024
5fee85e
refactor(profile): migrated change detection from useMemo to useEffec…
JavidSumra Oct 17, 2024
7b775a3
Discard package-lock.json file
JavidSumra Oct 17, 2024
391dcab
fix: prevent isDirty from updating on load due to phone number valida…
JavidSumra Oct 17, 2024
e39adc5
removed unnecessary console logging
JavidSumra Oct 17, 2024
34f6bbb
Merge branch 'develop' into issues/8804/profile-update-validation
JavidSumra Oct 17, 2024
1c3c769
fix: removed 'useEffect' from 'PhoneNumberFormField.tsx' Component
JavidSumra Oct 17, 2024
b2735fc
Merge branch 'issues/8804/profile-update-validation' of github.com:Ja…
JavidSumra Oct 17, 2024
217ae44
Merge branch 'develop' into issues/8804/profile-update-validation
nihal467 Oct 18, 2024
4ebc283
Merge branch 'develop' of github.com:JavidSumra/care_fe into issues/8…
JavidSumra Oct 18, 2024
03d2271
Merge branch 'ohcnetwork:develop' into issues/8804/profile-update-val…
JavidSumra Oct 21, 2024
f1422d8
Merge branch 'issues/8804/profile-update-validation' of github.com:Ja…
JavidSumra Oct 21, 2024
7b07e3b
Merge branch 'ohcnetwork:develop' into issues/8804/profile-update-val…
JavidSumra Oct 21, 2024
cf1fd70
Merge branch 'develop' into issues/8804/profile-update-validation
JavidSumra Oct 21, 2024
7700550
fix: Update a condition to check falsy value
JavidSumra Oct 21, 2024
1a2b837
Merge branch 'issues/8804/profile-update-validation' of github.com:Ja…
JavidSumra Oct 21, 2024
950ce0a
fix style for overflow export button
JavidSumra Oct 22, 2024
be74e40
fix styling and button text to resolve overflow
JavidSumra Oct 23, 2024
009693c
fix search-bar focus lose issue
JavidSumra Oct 23, 2024
2e74f8e
condition fix
JavidSumra Oct 23, 2024
06f5a65
fix merge conflict
JavidSumra Oct 23, 2024
11b61fd
fix none changed files
JavidSumra Oct 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions src/Components/Form/SearchInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,18 @@ const SearchInput = ({
));

// Escape hotkey to clear related
useKeyboardShortcut(["Escape"], () => value && setValue(""), {
ignoreInputFields: false,
});
useKeyboardShortcut(
["Escape"],
() => {
if (value) {
setValue("");
}
ref.current?.blur();
},
{
ignoreInputFields: false,
},
);

return (
<TextFormField
Expand Down
Loading