Skip to content

Commit d368ecb

Browse files
authored
Merge pull request #2926 from Shopify/kangjoa/ui-fix-searchbar
Add onBlur prop to SearchBar
2 parents 5bc3052 + 03a67f4 commit d368ecb

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.changeset/itchy-forks-lay.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@shopify/ui-extensions': minor
3+
'@shopify/ui-extensions-react': minor
4+
---
5+
6+
SearchBar - add onBlur handler

packages/ui-extensions/src/surfaces/point-of-sale/render/components/SearchBar/SearchBar.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ export interface SearchBarProps {
1717
* A callback when the input is focused.
1818
*/
1919
onFocus?: () => void;
20+
/**
21+
* A callback when focus is removed.
22+
*/
23+
onBlur?: () => void;
2024
/**
2125
* Whether the text can be changed.
2226
*/

0 commit comments

Comments
 (0)