]> cat aescling's git repositories - mastodon.git/commitdiff
Fix clicking on the new audioplayer opening the toot in detailed view
authorThibaut Girka <thib@sitedethib.com>
Thu, 29 Aug 2019 12:11:07 +0000 (14:11 +0200)
committerThibaut Girka <thib@sitedethib.com>
Thu, 29 Aug 2019 15:32:22 +0000 (17:32 +0200)
app/javascript/flavours/glitch/components/status_content.js

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