Skip to content

Commit

Permalink
fix(ui): do not insert space after link tag in CreateMewInput field
Browse files Browse the repository at this point in the history
  • Loading branch information
mattyg committed Aug 29, 2023
1 parent c348357 commit ea339d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/components/CreateMewInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -370,12 +370,12 @@ const createLinkTag = (e: Event) => {
range.insertNode(anchor);
// insert space after html link
const spaceNode = document.createTextNode(String.fromCharCode(160));
const spaceNode = document.createTextNode("");
anchor.after(spaceNode);
// reset input
resetLinkTargetInput();
document.getSelection()?.setPosition(spaceNode, 1);
document.getSelection()?.setPosition(spaceNode, 0);
};
/**
Expand Down

0 comments on commit ea339d9

Please sign in to comment.