commit: bf8c2c43483650bc046a3b3dd114f1cdfa49d2b4
parent: aa58cca040f332eefc6ef0e98752dd0f1a770c6e
Author: unarist <m.unarist@gmail.com>
Date: Tue, 20 Jun 2017 08:34:10 +0900
Clicking on the CW text should expand the status (#3855)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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;
}