diff options
author | unarist <m.unarist@gmail.com> | 2017-10-17 20:03:12 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-10-17 13:03:12 +0200 |
commit | 2d395324e18071dfb6132370b577a0aa13743d58 (patch) | |
tree | fe92bc611abdaf64c2dd1e6865f5481d92eec45c /app | |
parent | e6c9756fa998ff2bbf52b196f82c48274190a171 (diff) |
Fix React warning about tabIndex on status with CW (#5432)
Diffstat (limited to 'app')
-rw-r--r-- | app/javascript/mastodon/components/status_content.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/components/status_content.js b/app/javascript/mastodon/components/status_content.js index 63ce25865..fd9aa7edc 100644 --- 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) { |