From d10ed756ca2ed64fc403f5c5c8464b8410157456 Mon Sep 17 00:00:00 2001 From: David Cho-Lerat Date: Fri, 19 Jul 2024 18:01:25 +0200 Subject: [PATCH] SONAR-22574 Don't forward props from Mantine to Select items --- .../components/ProjectsSortingSelect.tsx | 22 ++++++------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/projects/components/ProjectsSortingSelect.tsx b/server/sonar-web/src/main/js/apps/projects/components/ProjectsSortingSelect.tsx index f34ef89f780..cbf6a81d223 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/ProjectsSortingSelect.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/ProjectsSortingSelect.tsx @@ -115,18 +115,10 @@ export default class ProjectsSortingSelect extends React.PureComponent { } } -const ProjectsSortingSelectItem = React.forwardRef( - ({ className, label, optionClass, short, value, ...props }, ref) => { - return ( -
- {short ?? label} -
- ); - }, -); - -ProjectsSortingSelectItem.displayName = 'ProjectsSortingSelectItem'; +function ProjectsSortingSelectItem({ label, optionClass, short, value }: Readonly