@@ -33,7 +33,7 @@ export default {
3333export type SelectStory = StoryFn < typeof Select > ;
3434
3535export const SelectExample : SelectStory = ( ) => (
36- < Select data-testid = "select-example" id = "select-example-id" style = { { position : 'relative' } } >
36+ < Select data-testid = "select-example" id = "select-example-id" >
3737 < Label style = { { display : 'block' } } > Test</ Label >
3838 < Button >
3939 < SelectValue />
@@ -54,7 +54,7 @@ export const SelectExample: SelectStory = () => (
5454) ;
5555
5656export const SelectRenderProps : SelectStory = ( ) => (
57- < Select data-testid = "select-render-props" style = { { position : 'relative' } } >
57+ < Select data-testid = "select-render-props" >
5858 { ( { isOpen} ) => (
5959 < >
6060 < Label style = { { display : 'block' } } > Test</ Label >
@@ -144,7 +144,7 @@ const usStateOptions = [
144144] ;
145145
146146export const SelectManyItems : SelectStory = ( ) => (
147- < Select style = { { position : 'relative' } } >
147+ < Select >
148148 < Label style = { { display : 'block' } } > Test</ Label >
149149 < Button >
150150 < SelectValue />
@@ -162,7 +162,7 @@ export const SelectManyItems: SelectStory = () => (
162162) ;
163163
164164export const VirtualizedSelect : SelectStory = ( ) => (
165- < Select style = { { position : 'relative' } } >
165+ < Select >
166166 < Label style = { { display : 'block' } } > Test</ Label >
167167 < Button >
168168 < SelectValue />
@@ -215,9 +215,9 @@ function AsyncVirtualizedCollectionRenderSelectRender(args: {delay: number}): JS
215215 } ) ;
216216
217217 return (
218- < Select style = { { position : 'relative' } } >
218+ < Select >
219219 < Label style = { { display : 'block' } } > Async Virtualized Collection render Select</ Label >
220- < Button style = { { position : 'relative' } } >
220+ < Button >
221221 < SelectValue />
222222 { list . isLoading && < LoadingSpinner style = { { right : '20px' , left : 'unset' , top : '0px' , height : '100%' , width : 20 } } /> }
223223 < span aria-hidden = "true" style = { { paddingLeft : 25 } } > ▼</ span >
@@ -312,3 +312,103 @@ export const RequiredSelectWithManyItems = (props) => (
312312 < Button type = "submit" > Submit</ Button >
313313 </ form >
314314) ;
315+
316+ export const SelectScrollBug = ( ) => {
317+ return (
318+ < div style = { { display : 'flex' , flexDirection : 'row' , height : '100vh' } } >
319+ < div style = { { flex : 3 } } >
320+ Scrolling here should do nothing.
321+ </ div >
322+
323+ < div style = { { flex : 1 , overflowY : 'auto' } } >
324+ Scrolling here should scroll the right side.
325+ < br />
326+ < br />
327+ < br />
328+ < br />
329+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Error
330+ voluptatibus esse qui enim neque aliquam facere velit ipsa non,
331+ voluptates aperiam odit minima dolorum harum! Facere eligendi officia
332+ ipsam mollitia!
333+ < br />
334+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Error
335+ voluptatibus esse qui enim neque aliquam facere velit ipsa non,
336+ voluptates aperiam odit minima dolorum harum! Facere eligendi officia
337+ ipsam mollitia!
338+ < br />
339+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Error
340+ voluptatibus esse qui enim neque aliquam facere velit ipsa non,
341+ voluptates aperiam odit minima dolorum harum! Facere eligendi officia
342+ ipsam mollitia!
343+ < br />
344+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Error
345+ voluptatibus esse qui enim neque aliquam facere velit ipsa non,
346+ voluptates aperiam odit minima dolorum harum! Facere eligendi officia
347+ ipsam mollitia!
348+ < br />
349+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Error
350+ voluptatibus esse qui enim neque aliquam facere velit ipsa non,
351+ voluptates aperiam odit minima dolorum harum! Facere eligendi officia
352+ ipsam mollitia!
353+ < br />
354+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Error
355+ voluptatibus esse qui enim neque aliquam facere velit ipsa non,
356+ voluptates aperiam odit minima dolorum harum! Facere eligendi officia
357+ ipsam mollitia!
358+ < br />
359+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Error
360+ voluptatibus esse qui enim neque aliquam facere velit ipsa non,
361+ voluptates aperiam odit minima dolorum harum! Facere eligendi officia
362+ ipsam mollitia!
363+ < br />
364+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Error
365+ voluptatibus esse qui enim neque aliquam facere velit ipsa non,
366+ voluptates aperiam odit minima dolorum harum! Facere eligendi officia
367+ ipsam mollitia!
368+ < br />
369+ < br />
370+ < br />
371+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Error
372+ voluptatibus esse qui enim neque aliquam facere velit ipsa non,
373+ voluptates aperiam odit minima dolorum harum! Facere eligendi officia
374+ ipsam mollitia!
375+ < br />
376+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Error
377+ voluptatibus esse qui enim neque aliquam facere velit ipsa non,
378+ voluptates aperiam odit minima dolorum harum! Facere eligendi officia
379+ ipsam mollitia!
380+ < br />
381+ < br />
382+ < br />
383+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Error
384+ voluptatibus esse qui enim neque aliquam facere velit ipsa non,
385+ voluptates aperiam odit minima dolorum harum! Facere eligendi officia
386+ ipsam mollitia!
387+ < br />
388+ < br />
389+ < br />
390+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Error
391+ voluptatibus esse qui enim neque aliquam facere velit ipsa non,
392+ voluptates aperiam odit minima dolorum harum! Facere eligendi officia
393+ ipsam mollitia!
394+ < br />
395+ < br />
396+ < br />
397+ < Select >
398+ < Label > Favorite Animal</ Label >
399+ < Button >
400+ < SelectValue />
401+ < span aria-hidden = "true" > ▼</ span >
402+ </ Button >
403+ < Popover >
404+ < ListBox >
405+ < MyListBoxItem > Cat</ MyListBoxItem >
406+ < MyListBoxItem > Dog</ MyListBoxItem >
407+ < MyListBoxItem > Kangaroo</ MyListBoxItem >
408+ </ ListBox >
409+ </ Popover >
410+ </ Select >
411+ </ div >
412+ </ div >
413+ ) ;
414+ } ;
0 commit comments