From 02ab70982b635f8c7622b907a35d700e40993ba1 Mon Sep 17 00:00:00 2001 From: Andrei Zhaleznichenka Date: Thu, 16 Jan 2025 15:26:50 +0100 Subject: [PATCH] fix: Fixes collection preferences active item style (#3203) --- src/collection-preferences/content-display/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/collection-preferences/content-display/index.tsx b/src/collection-preferences/content-display/index.tsx index c56a0498a8..fc85a6e5c9 100644 --- a/src/collection-preferences/content-display/index.tsx +++ b/src/collection-preferences/content-display/index.tsx @@ -134,11 +134,14 @@ export default function ContentDisplayPreference({ itemDefinition={{ id: item => item.id, label: item => item.label }} onItemsChange={({ detail }) => onChange(detail.items)} disableReorder={columnFilteringText.trim().length > 0} - renderItem={({ ref, item, style, className, dragHandleProps }) => { + renderItem={({ ref, item, style, className, dragHandleProps, isDragGhost }) => { className = clsx(className, getOptionClassName()); const content = ( ); + if (isDragGhost) { + return content; + } return (
  • {content}