From 68840f160f00292ce3808736a8b9be5e4f46820d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Su=2C=20Chin-Husan=20=E8=98=87=E9=9D=96=E8=BB=92?= Date: Fri, 6 Oct 2023 12:38:14 +0800 Subject: [PATCH] Select @next: add onBlur prop --- src/@next/Select/Select.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/@next/Select/Select.tsx b/src/@next/Select/Select.tsx index 781fa4533..6d431d89e 100644 --- a/src/@next/Select/Select.tsx +++ b/src/@next/Select/Select.tsx @@ -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; @@ -61,6 +62,7 @@ export const Select = ({ listHeight, loadingOptions = false, name, + onBlur, onClose, onRemoveTag, onSelect, @@ -161,6 +163,7 @@ export const Select = ({ placeholder={placeholder ?? 'Search'} width={width} selectedValues={selectedValues} + onBlur={onBlur} onSelect={onSelect} onFocus={handleFocus} inputValue={inputValue} @@ -184,6 +187,7 @@ export const Select = ({ disabled={disabled} hasError={hasError} placeholder={placeholder ?? 'Placeholder'} + onBlur={onBlur} onRemoveTag={onRemoveTag} onSelectClick={handleSelectClick} width={width}