fix: autocomplete search in AdhocFilter operator dropdown (#9654)
Searching for 'equ' in AdhocFilter's operator dropdown doesn't find the options who's label contain that substring. I'd write a unit test but it's pretty tricky.
This commit is contained in:
parent
eee6280780
commit
67d8b634b8
|
|
@ -313,7 +313,11 @@ export default class AdhocFilterEditPopoverSimpleTabContent extends React.Compon
|
|||
.filter(operator =>
|
||||
this.isOperatorRelevant(operator, adhocFilter.subject),
|
||||
)
|
||||
.map(operator => ({ operator })),
|
||||
.map(operator => ({
|
||||
operator,
|
||||
label: translateOperator(operator),
|
||||
value: operator,
|
||||
})),
|
||||
value: adhocFilter.operator,
|
||||
onChange: this.onOperatorChange,
|
||||
optionRenderer: VirtualizedRendererWrap(operator =>
|
||||
|
|
|
|||
Loading…
Reference in New Issue