Skip to content

Commit

Permalink
Fix clicking on a mention or topic in a post
Browse files Browse the repository at this point in the history
  • Loading branch information
tibetsprague committed Jan 12, 2025
1 parent 5c4b1f7 commit cd6c84e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const PeopleMentions = ({ groupIds, onSelection, suggestionsThemeName })
class: 'mention'
},
renderHTML: ({ options, node }) => {
return ['span', { class: 'topic' }, node.attrs.label ?? node.attrs.id]
return ['span', { class: 'mention', 'data-id': node.attrs.id }, node.attrs.label ?? node.attrs.id]
},
suggestion: {
char: '@',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const TopicMentions = ({ groupIds, maxSuggestions, onSelection, suggestio
class: 'topic'
},
renderHTML: ({ options, node }) => {
return ['span', { class: 'topic' }, node.attrs.label ?? node.attrs.id]
return ['span', { class: 'topic', 'data-id': node.attrs.id }, node.attrs.label ?? node.attrs.id]
},
suggestion: {
char: '#',
Expand Down

0 comments on commit cd6c84e

Please sign in to comment.