Skip to content

Commit

Permalink
Merge pull request #54 from Lorg0n/fix/CollectionBugFix
Browse files Browse the repository at this point in the history
Fix/collection bug fix
  • Loading branch information
olexh authored Jul 2, 2024
2 parents 30665b0 + ef2b4e4 commit ceba608
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions components/ui/input-tags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ export const InputTags = forwardRef<HTMLInputElement, InputTagsProps>(
onChange={(e) => setPendingDataPoint(e.target.value)}
onKeyDown={(e) => {
if (disableKeys) return;
if (pendingDataPoint.length >= 16)
e.preventDefault();

if (e.key === 'Enter') {
e.preventDefault();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const CollectionInfo = () => {
<CollectionAuthor />

{tags.length > 0 && (
<div className="flex items-center gap-2">
<div className="flex flex-wrap items-center gap-2">
{tags.map((tag) => (
<Badge key={tag} variant="secondary">
{tag.toLowerCase()}
Expand Down

0 comments on commit ceba608

Please sign in to comment.