@@ -29,7 +29,7 @@ export const PopoverSearchListComponent = (
29
29
const labelInResultTextWrittenByUser = useActionBottomSheet
30
30
? props . inputPopoverValue
31
31
: props . searchText ;
32
- const { refInput , refActionBottomSheet } = ref as unknown as MultipleRef ;
32
+ const { refActionBottomSheet } = ref as unknown as MultipleRef ;
33
33
34
34
const renderIconOrMessage = ( ) => {
35
35
if ( ! props . loading && props . noResultsText ?. content ) {
@@ -53,6 +53,7 @@ export const PopoverSearchListComponent = (
53
53
54
54
const renderSearchList = ( ) => (
55
55
< ListContainerStyled
56
+ data-input-dropdown-list
56
57
$height = { props . optionList . options . length ? props . listOptionsHeight : '' }
57
58
styles = { props . styles ?. [ props . state ] }
58
59
useActionBottomSheet = { useActionBottomSheet }
@@ -67,11 +68,11 @@ export const PopoverSearchListComponent = (
67
68
) : (
68
69
< OptionsList
69
70
ref = { ref }
70
- aria-controls = { props [ 'aria-controls' ] }
71
71
loader = { props . loader }
72
72
loading = { props . loading }
73
73
loadingText = { props . loadingText }
74
74
optionList = { props . optionList }
75
+ optionListId = { props . optionListId }
75
76
searchText = { labelInResultTextWrittenByUser }
76
77
stylesListOption = { props . styles . listOptions }
77
78
stylesState = { props . styles ?. [ props . state ] }
@@ -84,7 +85,8 @@ export const PopoverSearchListComponent = (
84
85
</ ListContainerStyled >
85
86
) ;
86
87
87
- const showHeaderInput = props . hasInputInSearchList && props . styles ?. [ props . state ] ?. allowSearch ;
88
+ const showHeaderInput =
89
+ props . hasInputInSearchList && ( props . allowSearch ?? props . styles ?. [ props . state ] ?. allowSearch ) ;
88
90
89
91
return (
90
92
< PopoverControlled
@@ -98,7 +100,6 @@ export const PopoverSearchListComponent = (
98
100
variant = { props . styles ?. [ props . state ] ?. popoverVariant ?. [ props . device ] }
99
101
onCloseInternally = { ( ) => {
100
102
props . onOpenOptions ( false ) ;
101
- refInput ?. current ?. focus ( ) ;
102
103
} }
103
104
>
104
105
{ useActionBottomSheet ? (
@@ -112,6 +113,7 @@ export const PopoverSearchListComponent = (
112
113
props . closeIcon ?. onClick ?.( e ) ;
113
114
} ,
114
115
} }
116
+ dragIcon = { props . dragIcon }
115
117
headerContent = {
116
118
showHeaderInput && (
117
119
< Input
@@ -134,7 +136,6 @@ export const PopoverSearchListComponent = (
134
136
// The variant is the same for all the states
135
137
variant = { props . styles ?. [ props . state ] ?. inputVariant as string }
136
138
onChange = { props . onInputPopoverChange }
137
- onKeyDown = { props . onInputPopoverKeyDown }
138
139
/>
139
140
)
140
141
}
0 commit comments