Skip to content

Commit

Permalink
JNG-5983 tag navigation (#477)
Browse files Browse the repository at this point in the history
  • Loading branch information
noherczeg authored Oct 29, 2024
1 parent 1fa3690 commit 7f821a6
Showing 1 changed file with 7 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,13 +209,13 @@ export function Tags<P, T>(props: TagsProps<P, T>) {
renderTags={(tagValue, getTagProps) =>
tagValue.map((option, index) => {
const { key, ...rest } = getTagProps({ index });
return (
<Chip
key={key}
label={option[autoCompleteAttribute]}
{...rest}
/>
);
return <Chip
key={key}
label={option[autoCompleteAttribute]}
{...rest}
sx={ { cursor: (typeof onItemClick === 'function' && !editMode) ? 'pointer' : undefined } }
onClick={onChipClicked}
/>;
})
}
renderInput={(params) => (
Expand Down Expand Up @@ -261,10 +261,6 @@ export function Tags<P, T>(props: TagsProps<P, T>) {
} }
/>
)}
ChipProps={ {
clickable: typeof onItemClick === 'function' && !editMode,
onClick: onChipClicked,
} }
/>
);
}

0 comments on commit 7f821a6

Please sign in to comment.