The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix(cmdk): modal flash on firefox
Greg Richardson60e3777ac8d2
diff --git a/packages/ui/src/components/Command/CommandMenu.tsx b/packages/ui/src/components/Command/CommandMenu.tsxindex 854b229464d..ce2f288cb69 100644--- a/packages/ui/src/components/Command/CommandMenu.tsx+++ b/packages/ui/src/components/Command/CommandMenu.tsx@@ -71,8 +71,12 @@ const CommandMenu = ({ projectRef }: CommandMenuProps) => {<CommandDialogpage={currentPage}visible={isOpen}- onInteractOutside={() => {- setIsOpen(!open)+ onInteractOutside={(e) => {+ // Only hide menu when clicking outside, not focusing outside+ // Prevents Firefox dropdown issue that immediately closes menu after opening+ if (e.type === 'dismissableLayer.pointerDownOutside') {+ setIsOpen(!open)+ }}}size={'xlarge'}className={'max-h-[70vh] lg:max-h-[50vh] overflow-hidden overflow-y-auto'}