Skip to content

Commit

Permalink
Merge pull request #972 from glints-dev/feature/update-next-select
Browse files Browse the repository at this point in the history
Select @next: add onBlur prop
  • Loading branch information
music1353 authored Oct 6, 2023
2 parents 42a9fd4 + 68840f1 commit bde046c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/@next/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export interface SelectProps {
listHeight?: number;
loadingOptions?: boolean;
name?: string;
onBlur?: () => void;
onClose?: () => void;
onRemoveTag?({ option }: { option: string }): void;
onSelect?({ value }: { value: string }): void;
Expand Down Expand Up @@ -61,6 +62,7 @@ export const Select = ({
listHeight,
loadingOptions = false,
name,
onBlur,
onClose,
onRemoveTag,
onSelect,
Expand Down Expand Up @@ -161,6 +163,7 @@ export const Select = ({
placeholder={placeholder ?? 'Search'}
width={width}
selectedValues={selectedValues}
onBlur={onBlur}
onSelect={onSelect}
onFocus={handleFocus}
inputValue={inputValue}
Expand All @@ -184,6 +187,7 @@ export const Select = ({
disabled={disabled}
hasError={hasError}
placeholder={placeholder ?? 'Placeholder'}
onBlur={onBlur}
onRemoveTag={onRemoveTag}
onSelectClick={handleSelectClick}
width={width}
Expand Down

0 comments on commit bde046c

Please sign in to comment.