Fixed status onClick when isNotification
• Updated: - Now, you will be able to click on any StatusActionBarItem to interact with a status from the notifiation feed without it pushing you to the status page onClick
This commit is contained in:
parent
69de9eab75
commit
9d9fcbcb36
|
@ -248,8 +248,6 @@ class Status extends ImmutablePureComponent {
|
|||
}
|
||||
|
||||
handleClick = () => {
|
||||
// : todo : if clicked on isNotification statusactionbaritem do not go to new page
|
||||
|
||||
if (this.props.onClick) {
|
||||
this.props.onClick()
|
||||
return
|
||||
|
@ -482,7 +480,7 @@ class Status extends ImmutablePureComponent {
|
|||
data-featured={isFeatured ? 'true' : null}
|
||||
aria-label={textForScreenReader(intl, status, rebloggedByText)}
|
||||
ref={this.handleRef}
|
||||
onClick={isChild ? this.handleClick : undefined}
|
||||
onClick={isChild && !isNotification ? this.handleClick : undefined}
|
||||
>
|
||||
<div className={innerContainerClasses}>
|
||||
|
||||
|
|
Loading…
Reference in New Issue