Fix pipeline bug on scroll (#666)

* Fix pipeline bug on scroll

* Fix lint

* Fix lint
This commit is contained in:
Charles Bochet
2023-07-15 11:00:32 -07:00
committed by GitHub
parent efd4ed16d6
commit 2bbcf6980a
8 changed files with 29 additions and 27 deletions
@@ -30,11 +30,13 @@ export function SingleEntitySelect<
onEntitySelected,
onCreate,
onCancel,
disableBackgroundBlur = false,
}: {
onCancel?: () => void;
onCreate?: () => void;
entities: EntitiesForSingleEntitySelect<CustomEntityForSelect>;
onEntitySelected: (entity: CustomEntityForSelect) => void;
disableBackgroundBlur?: boolean;
}) {
const containerRef = useRef<HTMLDivElement>(null);
@@ -49,7 +51,7 @@ export function SingleEntitySelect<
});
return (
<DropdownMenu ref={containerRef}>
<DropdownMenu disableBlur={disableBackgroundBlur} ref={containerRef}>
<DropdownMenuSearch
value={searchFilter}
onChange={handleSearchFilterChange}