fix: remove draggable from folder item — button click works on all resolutions
This commit is contained in:
@@ -170,14 +170,6 @@ function FolderTreeItem({
|
|||||||
setExpanded(!expanded);
|
setExpanded(!expanded);
|
||||||
onSelectFolder(node.id);
|
onSelectFolder(node.id);
|
||||||
}}
|
}}
|
||||||
>
|
|
||||||
<span
|
|
||||||
draggable
|
|
||||||
onDragStart={(e) => {
|
|
||||||
e.dataTransfer.setData('text/folder-id', node.id);
|
|
||||||
e.dataTransfer.effectAllowed = 'move';
|
|
||||||
}}
|
|
||||||
className="flex items-center gap-1.5 flex-1 min-w-0"
|
|
||||||
>
|
>
|
||||||
{chevron(expanded)}
|
{chevron(expanded)}
|
||||||
{icon(ICONS.folder, 'w-4 h-4 text-secondary-400')}
|
{icon(ICONS.folder, 'w-4 h-4 text-secondary-400')}
|
||||||
@@ -185,7 +177,6 @@ function FolderTreeItem({
|
|||||||
{node.contact_count > 0 && (
|
{node.contact_count > 0 && (
|
||||||
<span className="text-xs text-secondary-400 tabular-nums">{node.contact_count}</span>
|
<span className="text-xs text-secondary-400 tabular-nums">{node.contact_count}</span>
|
||||||
)}
|
)}
|
||||||
</span>
|
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={(e) => { e.stopPropagation(); e.preventDefault(); onMoreClick(e, node.id); }}
|
onClick={(e) => { e.stopPropagation(); e.preventDefault(); onMoreClick(e, node.id); }}
|
||||||
|
|||||||
Reference in New Issue
Block a user