mirror of
https://github.com/aljazceru/landscape-template.git
synced 2026-02-23 15:34:21 +01:00
fix: tags input color
This commit is contained in:
@@ -52,8 +52,9 @@ export default function TagsInput({
|
||||
|
||||
|
||||
const maxReached = value.length >= max;
|
||||
const currentPlaceholder = props.placeholder ?? <div className="flex gap-8 items-center text-gray-500">
|
||||
{maxReached ? '' : value.length > 0 ? "Add Another..." : placeholder} </div>
|
||||
|
||||
const currentPlaceholder = maxReached ? '' : value.length > 0 ? "Add Another..." : placeholder;
|
||||
|
||||
const tagsOptions = !maxReached ? (officalTags.data?.officialTags ?? []).filter(t => !value.some((v) => v.title === t.title)).map(transformer.tagToOption) : [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user