]> cat aescling's git repositories - mastodon.git/commitdiff
Clicking on the CW text should expand the status (#3855)
authorunarist <m.unarist@gmail.com>
Mon, 19 Jun 2017 23:34:10 +0000 (08:34 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 19 Jun 2017 23:34:10 +0000 (01:34 +0200)
app/javascript/mastodon/components/status_content.js

index 4e435b2c4eee7ebd543a442dce3b1afce5d9a1f4..0a71cbba7942fee8b9de3965dd31f453b16e5d7a 100644 (file)
@@ -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;
     }