File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,11 @@ export const Select = createFC<SelectProps, { isFormElement: boolean }>(
6969 { children }
7070 </ select >
7171 ) ;
72+ const selectElemWithContainer = rprops . multiple ? (
73+ selectElem
74+ ) : (
75+ < div className = 'slds-select_container' > { selectElem } </ div >
76+ ) ;
7277 if ( isFieldSetColumn || label || required || error || cols ) {
7378 const formElemProps = {
7479 controlId : id ,
@@ -81,16 +86,10 @@ export const Select = createFC<SelectProps, { isFormElement: boolean }>(
8186 elementRef,
8287 } ;
8388 return (
84- < FormElement { ...formElemProps } >
85- { rprops . multiple ? (
86- selectElem
87- ) : (
88- < div className = 'slds-select_container' > { selectElem } </ div >
89- ) }
90- </ FormElement >
89+ < FormElement { ...formElemProps } > { selectElemWithContainer } </ FormElement >
9190 ) ;
9291 }
93- return selectElem ;
92+ return selectElemWithContainer ;
9493 } ,
9594 { isFormElement : true }
9695) ;
You can’t perform that action at this time.
0 commit comments