mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
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(
|
const handleFilterOption = useMemo(
|
||||||
() => (search: string, option: TableOption) => {
|
() => (search: string, option: TableOption) => {
|
||||||
const searchValue = search.trim().toLowerCase();
|
const searchValue = search.trim().toLowerCase();
|
||||||
const { text } = option;
|
const { value } = option;
|
||||||
return text.toLowerCase().includes(searchValue);
|
return value.toLowerCase().includes(searchValue);
|
||||||
},
|
},
|
||||||
[],
|
[],
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user