logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 2d395324e18071dfb6132370b577a0aa13743d58
parent: e6c9756fa998ff2bbf52b196f82c48274190a171
Author: unarist <m.unarist@gmail.com>
Date:   Tue, 17 Oct 2017 20:03:12 +0900

Fix React warning about tabIndex on status with CW (#5432)


Diffstat:

Mapp/javascript/mastodon/components/status_content.js2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/javascript/mastodon/components/status_content.js b/app/javascript/mastodon/components/status_content.js @@ -153,7 +153,7 @@ export default class StatusContent extends React.PureComponent { {mentionsPlaceholder} - <div tabIndex={!hidden && 0} className={`status__content__text ${!hidden ? 'status__content__text--visible' : ''}`} style={directionStyle} dangerouslySetInnerHTML={content} /> + <div tabIndex={!hidden ? 0 : null} className={`status__content__text ${!hidden ? 'status__content__text--visible' : ''}`} style={directionStyle} dangerouslySetInnerHTML={content} /> </div> ); } else if (this.props.onClick) {