Skip to content

Commit

Permalink
Call onClear in LocationSuggest (#932)
Browse files Browse the repository at this point in the history
* Call onClear in LocationSuggest

* Update fe/lib/components/LocationSuggest/LocationSuggest.tsx

Co-authored-by: Ryan Ling <[email protected]>

* Update .changeset/quick-onions-remember.md

Co-authored-by: Ryan Ling <[email protected]>

---------

Co-authored-by: Ryan Ling <[email protected]>
  • Loading branch information
tbolg and 72636c authored May 5, 2023
1 parent 49a3148 commit 1d82d4f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/quick-onions-remember.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'wingman-fe': patch
---

LocationSuggest: Call `onClear`
2 changes: 2 additions & 0 deletions fe/lib/components/LocationSuggest/LocationSuggest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const LocationSuggest = forwardRef<
first = 5,
hirerId,
onSelect,
onClear,
schemeId,
usageTypeCode = 'PositionPosting',
initialValue,
Expand Down Expand Up @@ -174,6 +175,7 @@ export const LocationSuggest = forwardRef<
onClear={() => {
setSelectedLocation(undefined);
setPlaceholder('');
onClear?.();
}}
onDetectLocation={handleDetectLocationClicked}
onSelect={handleLocationSelect}
Expand Down

0 comments on commit 1d82d4f

Please sign in to comment.