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

This commit is contained in:
unarist 2017-10-17 20:03:12 +09:00 committed by Eugen Rochko
parent 15ae7fe6b2
commit 90fb04f1bb

View file

@ -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) {