From c969f30915003dc821ad68e960901640f8b904ea Mon Sep 17 00:00:00 2001 From: AE Creations Date: Fri, 22 Jan 2021 12:29:28 -0800 Subject: [PATCH] Attempted fix for input event from clipping paste action not reaching shadown DOM of a custom web component (issue #320) --- wx-src/content.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/wx-src/content.js b/wx-src/content.js index e03c2db1..0880a0b9 100644 --- a/wx-src/content.js +++ b/wx-src/content.js @@ -228,7 +228,13 @@ function insertTextIntoRichTextEditor(aRichTextEditorDocument, aClippingText, aA function createInputEventInstance() { - return new Event("input", { bubbles: true, cancelable: false }); + let eventInit = { + bubbles: true, + cancelable: false, + composed: true + }; + + return new Event("input", eventInit); }