fix: bookmarkIcon flash on hover exit (#8448)

Fixes: #8447

Co-authored-by: Félix Malfait <felix@twenty.com>
This commit is contained in:
Harsh Singh 2024-11-11 14:00:03 +05:30 committed by GitHub
parent c19e54f24b
commit 29d92abaff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -64,7 +64,7 @@ export const MultiItemFieldMenuItem = <T,>({
onMouseLeave={handleMouseLeave}
text={<DisplayComponent value={value} />}
isIconDisplayedOnHoverOnly={!isPrimary && !isDropdownOpen}
RightIcon={isHovered ? null : IconBookmark}
RightIcon={!isHovered && isPrimary ? IconBookmark : null}
dropdownId={dropdownId}
dropdownContent={
<DropdownMenuItemsContainer>