Skip to content

Commit

Permalink
fix(paste): correct paste event init type (#611)
Browse files Browse the repository at this point in the history
  • Loading branch information
fergusmcdonald authored Mar 23, 2021
1 parent 0fe1fec commit d612aa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/paste.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface pasteOptions {
function paste(
element: HTMLInputElement | HTMLTextAreaElement,
text: string,
init?: MouseEventInit,
init?: ClipboardEventInit,
{initialSelectionStart, initialSelectionEnd}: pasteOptions = {},
) {
if (isDisabled(element)) {
Expand Down

0 comments on commit d612aa4

Please sign in to comment.