Skip to content

Commit

Permalink
Merge pull request #502 from ahsan-javaiid/fix/address-input
Browse files Browse the repository at this point in the history
[FIX] Clear address field before paste
  • Loading branch information
kvhnuke authored Sep 9, 2024
2 parents 906f4fe + ad978e9 commit 6582c23
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ const addressInput = ref<HTMLInputElement>();
const pasteFromClipboard = () => {
addressInput.value?.focus();
// Clear existing data from address field
if (addressInput.value) {
addressInput.value.value = "";
}
document.execCommand("paste");
};
defineExpose({ addressInput, pasteFromClipboard });
Expand Down

1 comment on commit 6582c23

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.