Skip to content

Commit

Permalink
set option title to first 220 chars of content
Browse files Browse the repository at this point in the history
  • Loading branch information
finlay-jisc committed Oct 13, 2023
1 parent 623810e commit e5f9f59
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ const LinkedPublicationsCombobox: React.FC<LinkedPublicationsComboboxProps> = (p
} ${index === 0 && 'rounded-t'} ${index === results.length - 1 && 'rounded-b'}`
}
value={publication}
title={Helpers.truncateString(Helpers.htmlToText(publication.content), 220)}
>
<div className="space-y-2">
<span className="font-montserrat text-sm font-medium text-teal-600">
Expand Down

0 comments on commit e5f9f59

Please sign in to comment.