diff --git a/src/Components/Input/TextAreaInput.tsx b/src/Components/Input/TextAreaInput.tsx index 78b17d9b..3f9959e8 100644 --- a/src/Components/Input/TextAreaInput.tsx +++ b/src/Components/Input/TextAreaInput.tsx @@ -28,35 +28,36 @@ export function TextAreaInput({ labelTitle, dataField, labelStyle, containerStyl const init = useRef(false) const tags = useTags(); - const values: KeyValue[] = []; + + let values: KeyValue[] = []; + tags.map(tag => { values.push({ key: tag.id, value: tag.id, color: tag.color }) }) var tribute = new Tribute({ - containerClass: 'tw-z-500 tw-bg-white tw-p-2 tw-rounded', + containerClass: 'tw-z-500 tw-bg-white tw-p-2 tw-rounded-lg tw-shadow', selectClass: 'tw-font-bold', trigger: "#", values: values, + noMatchTemplate: () => { + return "" + }, menuItemTemplate: function (item) { - console.log(item); return `#${item.string}`; - }, + } }); useEffect(() => { if (!init.current) { if (ref.current) { - console.log("check"); tribute.attach(ref.current); } init.current = true; } }, [ref]) - - return (
{labelTitle ?