From: unarist Date: Mon, 19 Jun 2017 23:34:10 +0000 (+0900) Subject: Clicking on the CW text should expand the status (#3855) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=bf8c2c43483650bc046a3b3dd114f1cdfa49d2b4;p=mastodon.git Clicking on the CW text should expand the status (#3855) --- 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; }