feat: prevent label dropdown from closing after selection

This commit is contained in:
Henry
2025-02-01 16:01:30 +00:00
parent 2882a3da2a
commit adeeab13a4
3 changed files with 91 additions and 174 deletions

View File

@@ -4,6 +4,7 @@ import ContentEditable from "react-contenteditable";
import { useForm } from "react-hook-form";
import { IoChevronForwardSharp } from "react-icons/io5";
import LabelIcon from "~/components/LabelIcon";
import Modal from "~/components/modal";
import { NewWorkspaceForm } from "~/components/NewWorkspaceForm";
import { PageHead } from "~/components/PageHead";
@@ -55,9 +56,10 @@ export default function CardPage() {
);
return {
...label,
key: label.publicId,
value: label.name,
selected: isSelected ?? false,
colourCode: label.colourCode ?? "",
leftIcon: <LabelIcon colourCode={label.colourCode} />,
};
}) ?? [];