File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
packages/dropdowns.next/src Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -194,11 +194,14 @@ describe('Combobox', () => {
194
194
} ) ;
195
195
196
196
it ( 'renders `isBare` styling as expected' , ( ) => {
197
- const { getByTestId } = render ( < TestCombobox isBare /> ) ;
197
+ const { getByTestId, rerender } = render ( < TestCombobox isBare /> ) ;
198
198
const combobox = getByTestId ( 'combobox' ) ;
199
199
200
200
expect ( combobox . firstChild ) . toHaveStyleRule ( 'border' , 'none' ) ;
201
201
expect ( combobox . firstChild ) . toHaveStyleRule ( 'overflow-y' , 'visible' ) ;
202
+
203
+ rerender ( < TestCombobox isBare isMultiselectable /> ) ;
204
+ expect ( combobox . firstChild ) . toHaveStyleRule ( 'overflow-y' , 'auto' ) ;
202
205
} ) ;
203
206
204
207
it ( 'renders `isCompact` styling as expected' , ( ) => {
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ export const StyledTrigger = styled.div.attrs({
138
138
'data-garden-id' : COMPONENT_ID ,
139
139
'data-garden-version' : PACKAGE_VERSION
140
140
} ) < IStyledTriggerProps > `
141
- overflow-y: ${ props => ( props . isBare ? 'visible' : 'auto' ) } ;
141
+ overflow-y: ${ props => ( props . isBare && ! props . isMultiselectable ? 'visible' : 'auto' ) } ;
142
142
/* prettier-ignore */
143
143
transition:
144
144
border-color 0.25s ease-in-out,
You can’t perform that action at this time.
0 commit comments