File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ export default function SelectPage() {
5252 title = "Multiselect with custom item renderer"
5353 settings = {
5454 < Button
55+ data-testid = "toggle-virtual-scroll"
5556 onClick = { ( ) => {
5657 setVirtualScroll ( prevValue => ! prevValue ) ;
5758 } }
@@ -62,11 +63,10 @@ export default function SelectPage() {
6263 screenshotArea = { {
6364 style : {
6465 padding : 10 ,
65- paddingBlockEnd : 550 ,
6666 } ,
6767 } }
6868 >
69- < div style = { { inlineSize : '400px' } } >
69+ < div style = { { maxInlineSize : '400px' , blockSize : '650px ' } } >
7070 < Multiselect
7171 virtualScroll = { virtualScroll }
7272 enableSelectAll = { true }
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ export default function SelectPage() {
5656 title = "Select with custom item renderer"
5757 settings = {
5858 < Button
59+ data-testid = "toggle-virtual-scroll"
5960 onClick = { ( ) => {
6061 setVirtualScroll ( prevValue => ! prevValue ) ;
6162 } }
@@ -66,16 +67,15 @@ export default function SelectPage() {
6667 screenshotArea = { {
6768 style : {
6869 padding : 10 ,
69- paddingBlockEnd : 550 ,
7070 } ,
7171 } }
7272 >
73- < div style = { { inlineSize : '400px' } } >
73+ < div style = { { maxInlineSize : '400px' , blockSize : '650px ' } } >
7474 < Select
7575 virtualScroll = { virtualScroll }
7676 filteringType = "auto"
7777 renderOption = { renderOption }
78- placeholder = " Choose option"
78+ placeholder = { ' Choose option ' + ( virtualScroll ? '(virtual)' : '' ) }
7979 selectedOption = { selectedOption }
8080 onChange = { ( { detail } ) => setSelectedOption ( detail . selectedOption ) }
8181 options = { options }
You can’t perform that action at this time.
0 commit comments