File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
packages/pluggableWidgets/combobox-web Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 337
337
<actionVariable key =" filterInput" caption =" Filter Input" type =" String" />
338
338
</actionVariables >
339
339
</property >
340
+
341
+ <property key =" debounceInterval" type =" integer" required =" true" defaultValue =" 200" >
342
+ <caption >Debounce interval</caption >
343
+ <description >The debounce interval in milliseconds.</description >
344
+ </property >
340
345
</propertyGroup >
341
346
<propertyGroup caption =" Accessibility" >
342
347
<propertyGroup caption =" Accessibility" >
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export function useGetSelector(props: ComboboxContainerProps): Selector {
25
25
( ) =>
26
26
debounce ( ( filterValue ?: string ) => {
27
27
onInputValueChange ( props . onChangeFilterInputEvent , filterValue ) ;
28
- } , 200 ) ,
28
+ } , props . debounceInterval ?? 200 ) ,
29
29
[ props . onChangeFilterInputEvent ]
30
30
) ;
31
31
Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ export interface ComboboxContainerProps {
90
90
onEnterEvent ?: ActionValue ;
91
91
onLeaveEvent ?: ActionValue ;
92
92
onChangeFilterInputEvent ?: ActionValue < { filterInput : Option < string > } > ;
93
+ debounceInterval : number ;
93
94
ariaRequired : DynamicValue < boolean > ;
94
95
ariaLabel ?: DynamicValue < string > ;
95
96
clearButtonAriaLabel ?: DynamicValue < string > ;
@@ -147,6 +148,7 @@ export interface ComboboxPreviewProps {
147
148
onEnterEvent : { } | null ;
148
149
onLeaveEvent : { } | null ;
149
150
onChangeFilterInputEvent : { } | null ;
151
+ debounceInterval : number | null ;
150
152
ariaRequired : string ;
151
153
ariaLabel : string ;
152
154
clearButtonAriaLabel : string ;
You can’t perform that action at this time.
0 commit comments