Explorar o código

Don't propagate paste events in chat textarea

JC Brand %!s(int64=4) %!d(string=hai) anos
pai
achega
0d9c7bade3
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/plugins/chatview/bottom_panel.js

+ 1 - 0
src/plugins/chatview/bottom_panel.js

@@ -376,6 +376,7 @@ export default class ChatBottomPanel extends ElementView {
     }
 
     onPaste (ev) {
+        ev.stopPropagation();
         if (ev.clipboardData.files.length !== 0) {
             ev.preventDefault();
             // Workaround for quirk in at least Firefox 60.7 ESR: