]> cat aescling's git repositories - mastodon.git/commitdiff
Do not handle clicks in detailed status content
authorThibaut Girka <thib@sitedethib.com>
Wed, 3 Apr 2019 17:29:51 +0000 (19:29 +0200)
committerThibG <thib@sitedethib.com>
Wed, 3 Apr 2019 17:58:18 +0000 (19:58 +0200)
app/javascript/flavours/glitch/components/status_content.js
app/javascript/flavours/glitch/features/status/components/detailed_status.js

index a6284418534b97cc0cd769a22fa0d23e9b95ffae..ae14c949a1a34bb5a8b1395f444f5ba47ecc8e17 100644 (file)
@@ -91,9 +91,9 @@ export default class StatusContent extends React.PureComponent {
   }
 
   handleMouseUp = (e) => {
-    const { parseClick } = this.props;
+    const { parseClick, disabled } = this.props;
 
-    if (!this.startXY) {
+    if (disabled || !this.startXY) {
       return;
     }
 
index e78f16c5486a3e021539e6eedaeea9765a6c29d2..e9130b1b00c61cca6cdc6bcd4c7149aa119d955f 100644 (file)
@@ -228,6 +228,7 @@ export default class DetailedStatus extends ImmutablePureComponent {
             onExpandedToggle={onToggleHidden}
             parseClick={this.parseClick}
             onUpdate={this.handleChildUpdate}
+            disabled
           />
 
           <div className='detailed-status__meta'>