Skip to content

Commit

Permalink
Attempted fix for input event from clipping paste action not reaching…
Browse files Browse the repository at this point in the history
… shadown DOM of a custom web component

(issue #320)
  • Loading branch information
aecreations committed Jan 22, 2021
1 parent 99df101 commit c969f30
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion wx-src/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}


Expand Down

0 comments on commit c969f30

Please sign in to comment.