about summary refs log tree commit diff
path: root/app/javascript
diff options
context:
space:
mode:
authorunarist <m.unarist@gmail.com>2017-10-17 20:03:12 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-10-17 13:03:12 +0200
commit2d395324e18071dfb6132370b577a0aa13743d58 (patch)
treefe92bc611abdaf64c2dd1e6865f5481d92eec45c /app/javascript
parente6c9756fa998ff2bbf52b196f82c48274190a171 (diff)
Fix React warning about tabIndex on status with CW (#5432)
Diffstat (limited to 'app/javascript')
-rw-r--r--app/javascript/mastodon/components/status_content.js2
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) {