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);
|
||||
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)}
|
||||
{icon(ICONS.folder, 'w-4 h-4 text-secondary-400')}
|
||||
@@ -185,7 +177,6 @@ function FolderTreeItem({
|
||||
{node.contact_count > 0 && (
|
||||
<span className="text-xs text-secondary-400 tabular-nums">{node.contact_count}</span>
|
||||
)}
|
||||
</span>
|
||||
<button
|
||||
type="button"
|
||||
onClick={(e) => { e.stopPropagation(); e.preventDefault(); onMoreClick(e, node.id); }}
|
||||
|
||||
Reference in New Issue
Block a user