@@ -202,7 +202,11 @@ const Select = forwardRefWithStatics(
202202 const handleRemove = ( removeIndex , trigger , e , label ) => {
203203 const values = getSelectValueArr ( value , value [ removeIndex ] , true , valueType , keys ) ;
204204 const { currentSelectedOptions } = getSelectedOptions ( values , multiple , valueType , keys , valueToOption ) ;
205- onChange ( values , { e, trigger, selectedOptions : currentSelectedOptions } ) ;
205+ onChange ( values , {
206+ e,
207+ trigger,
208+ selectedOptions : currentSelectedOptions ,
209+ } ) ;
206210 onRemove ?.( {
207211 value : value [ removeIndex ] ,
208212 data : {
@@ -356,7 +360,9 @@ const Select = forwardRefWithStatics(
356360 return ;
357361 }
358362 if ( isFunction ( onSearch ) ) {
359- onSearch ( value , { e : context . e as React . KeyboardEvent < HTMLDivElement > } ) ;
363+ onSearch ( value , {
364+ e : context . e as React . KeyboardEvent < HTMLDivElement > ,
365+ } ) ;
360366 return ;
361367 }
362368 } ;
@@ -482,7 +488,10 @@ const Select = forwardRefWithStatics(
482488 if ( multiple ) {
483489 return ( { onClose } ) => parseContentTNode ( valueDisplay , { value : selectedOptions , onClose } ) ;
484490 }
485- return parseContentTNode ( valueDisplay , { value : selectedLabel , onClose : noop } ) ;
491+ return parseContentTNode ( valueDisplay , {
492+ value : selectedLabel ,
493+ onClose : noop ,
494+ } ) ;
486495 // eslint-disable-next-line react-hooks/exhaustive-deps
487496 } , [
488497 valueDisplay ,
@@ -556,7 +565,7 @@ const Select = forwardRefWithStatics(
556565 autoWidth = { ! style ?. width && autoWidth }
557566 ref = { composeRefs ( ref , selectInputRef ) }
558567 className = { name }
559- readonly = { readOnly }
568+ readOnly = { readOnly }
560569 autofocus = { props . autofocus }
561570 allowInput = { ( filterable ?? local . filterable ) || isFunction ( filter ) }
562571 multiple = { multiple }
@@ -602,7 +611,10 @@ const Select = forwardRefWithStatics(
602611 onFocus = { onFocus }
603612 onEnter = { handleEnter }
604613 onBlur = { ( _ , context ) => {
605- onBlur ?.( { value, e : context . e as React . FocusEvent < HTMLDivElement > } ) ;
614+ onBlur ?.( {
615+ value,
616+ e : context . e as React . FocusEvent < HTMLDivElement > ,
617+ } ) ;
606618 } }
607619 onClear = { handleClear }
608620 { ...selectInputProps }
0 commit comments