Skip to content

Commit

Permalink
feat: Add onBlur handler to ComboboxControl for focus loss management
Browse files Browse the repository at this point in the history
  • Loading branch information
dhananjaykuber committed Jan 24, 2025
1 parent fd71d18 commit 825f27b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/components/src/combobox-control/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ function ComboboxControl( props: ComboboxControlProps ) {
options,
onChange: onChangeProp,
onFilterValueChange = noop,
onBlur: onBlurProp = noop,
hideLabelFromVision,
help,
allowReset = true,
Expand Down Expand Up @@ -237,6 +238,7 @@ function ComboboxControl( props: ComboboxControlProps ) {

const onBlur = () => {
setInputHasFocus( false );
onBlurProp();
};

const onFocus = () => {
Expand Down

0 comments on commit 825f27b

Please sign in to comment.