We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a968ffd commit cb4ea74Copy full SHA for cb4ea74
packages/core/src/components/list/list-item/list-item-head/ListItemHead.tsx
@@ -171,7 +171,6 @@ const ListItemHead: FC<ListItemHeadProps> = ({
171
const shouldPreventRightElementClick = useMemo(() => {
172
if (!rightElements) return false;
173
174
- // Check if right elements is an object or of type ReactNode
175
if (
176
typeof rightElements === 'object' &&
177
('bottom' in rightElements || 'center' in rightElements || 'top' in rightElements)
@@ -190,6 +189,8 @@ const ListItemHead: FC<ListItemHeadProps> = ({
190
189
} else {
191
return getElementClickEvent(rightElements as ReactNode);
192
}
+
193
+ return false;
194
}, [rightElements]);
195
196
const iconOrImageElement = useMemo(() => {
0 commit comments