This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -173,11 +173,11 @@ const Pill = React.createClass({
173
173
174
174
if ( this . state . pillType ) {
175
175
return this . props . inMessage ?
176
- < a className = { classes } href = { this . props . url } title = { resource } >
176
+ < a className = { classes } href = { this . props . url } title = { resource } data-offset-key = { this . props . offsetKey } >
177
177
{ avatar }
178
178
{ linkText }
179
179
</ a > :
180
- < span className = { classes } title = { resource } >
180
+ < span className = { classes } title = { resource } data-offset-key = { this . props . offsetKey } >
181
181
{ avatar }
182
182
{ linkText }
183
183
</ span > ;
Original file line number Diff line number Diff line change @@ -186,16 +186,16 @@ export default class MessageComposerInput extends React.Component {
186
186
RichText . getScopedMDDecorators ( this . props ) ;
187
187
decorators . push ( {
188
188
strategy : this . findLinkEntities . bind ( this ) ,
189
- component : ( props ) => {
189
+ component : ( entityProps ) => {
190
190
const Pill = sdk . getComponent ( 'elements.Pill' ) ;
191
- const { url} = Entity . get ( props . entityKey ) . getData ( ) ;
191
+ const { url} = Entity . get ( entityProps . entityKey ) . getData ( ) ;
192
192
if ( Pill . isPillUrl ( url ) ) {
193
- return < Pill url = { url } room = { this . props . room } /> ;
193
+ return < Pill url = { url } room = { this . props . room } offsetKey = { entityProps . offsetKey } /> ;
194
194
}
195
195
196
196
return (
197
- < a href = { url } >
198
- { props . children }
197
+ < a href = { url } data-offset-key = { entityProps . offsetKey } >
198
+ { entityProps . children }
199
199
</ a >
200
200
) ;
201
201
} ,
You can’t perform that action at this time.
0 commit comments