From d173b101e3c9d48d59d380f4433dbea53dae5c89 Mon Sep 17 00:00:00 2001 From: Mohamed Bassem Date: Sun, 14 Sep 2025 09:48:52 +0000 Subject: fix(web): fix error when attempting to merge tags. fixes #1938 --- apps/web/components/dashboard/tags/TagPill.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'apps/web/components/dashboard') diff --git a/apps/web/components/dashboard/tags/TagPill.tsx b/apps/web/components/dashboard/tags/TagPill.tsx index 81d700cd..2da97b2e 100644 --- a/apps/web/components/dashboard/tags/TagPill.tsx +++ b/apps/web/components/dashboard/tags/TagPill.tsx @@ -1,4 +1,4 @@ -import React, { useState } from "react"; +import React, { useRef, useState } from "react"; import Link from "next/link"; import { Button } from "@/components/ui/button"; import { Separator } from "@/components/ui/separator"; @@ -23,6 +23,7 @@ export function TagPill({ onOpenDialog: (tag: { id: string; name: string }) => void; }) { const [isHovered, setIsHovered] = useState(false); + const draggableRef = useRef(null); const handleMouseOver = () => setIsHovered(true); const handleMouseOut = () => setIsHovered(false); @@ -74,6 +75,7 @@ export function TagPill({ onFocus={handleMouseOver} onMouseOut={handleMouseOut} onBlur={handleMouseOut} + ref={draggableRef} > {pill} -- cgit v1.2.3-70-g09d2