mirror of https://github.com/apache/superset.git
fix: typing and using enter to select the table on sql lab layout (#24028)
This commit is contained in:
parent
7a55625243
commit
479be86596
|
@ -264,8 +264,8 @@ const TableSelector: FunctionComponent<TableSelectorProps> = ({
|
|||
const handleFilterOption = useMemo(
|
||||
() => (search: string, option: TableOption) => {
|
||||
const searchValue = search.trim().toLowerCase();
|
||||
const { text } = option;
|
||||
return text.toLowerCase().includes(searchValue);
|
||||
const { value } = option;
|
||||
return value.toLowerCase().includes(searchValue);
|
||||
},
|
||||
[],
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue