Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: policy dropdowns (#44568)

Vaibhav550f1a725d47
diff --git a/apps/studio/components/interfaces/Auth/Policies/PolicyEditorPanel/PolicyDetailsV2.tsx b/apps/studio/components/interfaces/Auth/Policies/PolicyEditorPanel/PolicyDetailsV2.tsx
index 268326a9a14..50500f0cee9 100644
--- a/apps/studio/components/interfaces/Auth/Policies/PolicyEditorPanel/PolicyDetailsV2.tsx
+++ b/apps/studio/components/interfaces/Auth/Policies/PolicyEditorPanel/PolicyDetailsV2.tsx
@@ -170,7 +170,7 @@ export const PolicyDetailsV2 = ({
>
<Command_Shadcn_>
<CommandInput_Shadcn_ placeholder="Find a table..." />
- <CommandList_Shadcn_>
+ <CommandList_Shadcn_ onWheel={(event) => event.stopPropagation()}>
<CommandEmpty_Shadcn_>No tables found</CommandEmpty_Shadcn_>
<CommandGroup_Shadcn_>
<ScrollArea className={(tables ?? []).length > 7 ? 'h-[200px]' : ''}>
diff --git a/packages/ui-patterns/src/MultiSelectDeprecated/MultiSelectV2.tsx b/packages/ui-patterns/src/MultiSelectDeprecated/MultiSelectV2.tsx
index cedc390fd7b..799cc9b8e9f 100644
--- a/packages/ui-patterns/src/MultiSelectDeprecated/MultiSelectV2.tsx
+++ b/packages/ui-patterns/src/MultiSelectDeprecated/MultiSelectV2.tsx
@@ -121,7 +121,7 @@ export const MultiSelectV2 = ({
<PopoverContent_Shadcn_ className="p-0 w-96 border-strong" side="bottom" align="start">
<Command_Shadcn_>
<CommandInput_Shadcn_ placeholder={searchPlaceholder} />
- <CommandList_Shadcn_>
+ <CommandList_Shadcn_ onWheel={(event) => event.stopPropagation()}>
<CommandEmpty_Shadcn_>No options found</CommandEmpty_Shadcn_>
<CommandGroup_Shadcn_>
<ScrollArea className={cn(formattedOptions.length > 7 ? 'h-[210px]' : '')}>