Skip to content

Commit

Permalink
[Fix] dropdown item title (#2009)
Browse files Browse the repository at this point in the history
Signed-off-by: Ihor Dykhta <dikhta.igor@gmail.com>
Co-authored-by: Aleksandar Krndija <6893449+coagit@users.noreply.github.com>
  • Loading branch information
igorDykhta and coagit committed Nov 22, 2022
1 parent 81fcbb4 commit 6c26666
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/components/src/common/item-selector/dropdown-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,14 @@ export const classList = {
};

const defaultDisplay = d => d;
export const ListItem = ({value, displayOption = defaultDisplay, light}) => (
<span className={classList.listItemAnchor}>{displayOption(value)}</span>
);
export const ListItem = ({value, displayOption = defaultDisplay, light}) => {
const displayValue = displayOption(value);
return (
<span title={displayValue} className={classNames(classList.listItemAnchor)}>
{displayValue}
</span>
);
};

interface DropdownListWrapperProps {
light?: boolean;
Expand Down

0 comments on commit 6c26666

Please sign in to comment.