diff options
author | unarist <m.unarist@gmail.com> | 2017-06-20 08:34:10 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-06-20 01:34:10 +0200 |
commit | bf8c2c43483650bc046a3b3dd114f1cdfa49d2b4 (patch) | |
tree | 0470bca7178f2877a82e7837ad94bf2bd109a183 /app/javascript | |
parent | aa58cca040f332eefc6ef0e98752dd0f1a770c6e (diff) |
Clicking on the CW text should expand the status (#3855)
Diffstat (limited to 'app/javascript')
-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 4e435b2c4..0a71cbba7 100644 --- a/app/javascript/mastodon/components/status_content.js +++ b/app/javascript/mastodon/components/status_content.js @@ -81,7 +81,7 @@ class StatusContent extends React.PureComponent { const [ startX, startY ] = this.startXY; const [ deltaX, deltaY ] = [Math.abs(e.clientX - startX), Math.abs(e.clientY - startY)]; - if (e.target.localName === 'button' || e.target.localName === 'span' || e.target.localName === 'a' || (e.target.parentNode && e.target.parentNode.localName === 'a')) { + if (e.target.localName === 'button' || e.target.localName === 'a' || (e.target.parentNode && (e.target.parentNode.localName === 'button' || e.target.parentNode.localName === 'a'))) { return; } |