The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
309 have comment relation picker show up above the relation field (#332)
Lucas Bordeauc8c4a953c2f8
diff --git a/front/src/modules/comments/components/CommentThreadRelationPicker.tsx b/front/src/modules/comments/components/CommentThreadRelationPicker.tsxindex 2f9f2cf6836..093912c34cd 100644--- a/front/src/modules/comments/components/CommentThreadRelationPicker.tsx+++ b/front/src/modules/comments/components/CommentThreadRelationPicker.tsx@@ -168,7 +168,13 @@ export function CommentThreadRelationPicker({ commentThread }: OwnProps) {const { refs, floatingStyles } = useFloating({strategy: 'absolute',- middleware: [offset(), flip(), size()],+ middleware: [+ offset(({ rects }) => {+ return -rects.reference.height;+ }),+ flip(),+ size(),+ ],whileElementsMounted: autoUpdate,open: isMenuOpen,placement: 'bottom-start',diff --git a/front/src/modules/comments/components/MultipleEntitySelect.tsx b/front/src/modules/comments/components/MultipleEntitySelect.tsxindex 92874452a1f..5a4a4e5a880 100644--- a/front/src/modules/comments/components/MultipleEntitySelect.tsx+++ b/front/src/modules/comments/components/MultipleEntitySelect.tsx@@ -55,7 +55,11 @@ export function MultipleEntitySelect({return (<DropdownMenu>- <DropdownMenuSearch value={searchFilter} onChange={handleFilterChange} />+ <DropdownMenuSearch+ value={searchFilter}+ onChange={handleFilterChange}+ autoFocus+ /><DropdownMenuSeparator /><DropdownMenuItemContainer>{entitiesInDropdown?.map((entity) => (