]> cat aescling's git repositories - mastodon.git/commitdiff
Fix clicking the audio player also opening toots in detailed view
authorThibaut Girka <thib@sitedethib.com>
Fri, 10 Jul 2020 07:50:41 +0000 (09:50 +0200)
committerThibG <thib@sitedethib.com>
Fri, 10 Jul 2020 08:28:05 +0000 (10:28 +0200)
app/javascript/flavours/glitch/components/status_content.js

index a5822866ab291c164a134491f4cf01baef51b722..a39f747b8e89a0bd0dd97bfcb272aee48b41c725 100644 (file)
@@ -231,7 +231,7 @@ export default class StatusContent extends React.PureComponent {
 
     let element = e.target;
     while (element) {
-      if (['button', 'video', 'a', 'label', 'wave'].includes(element.localName)) {
+      if (['button', 'video', 'a', 'label', 'canvas'].includes(element.localName)) {
         return;
       }
       element = element.parentNode;