Skip to content

Commit

Permalink
fix: Fixes collection preferences active item style (#3203)
Browse files Browse the repository at this point in the history
  • Loading branch information
pan-kot authored Jan 16, 2025
1 parent 6bb66a8 commit 02ab709
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/collection-preferences/content-display/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
<ContentDisplayOption ref={ref} option={item} onToggle={onToggle} dragHandleProps={dragHandleProps} />
);
if (isDragGhost) {
return content;
}
return (
<li className={className} style={style}>
{content}
Expand Down

0 comments on commit 02ab709

Please sign in to comment.