Skip to content

Commit

Permalink
fix: fix a typo (#25)
Browse files Browse the repository at this point in the history
Not a bug.
Because, looks like we can direct access an html element
using his id as variable name.
  • Loading branch information
pythonbrad authored Aug 18, 2024
1 parent 28dca71 commit 5a52e6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,13 +219,13 @@ global.afrim = Object({
textFieldElement.selectionEnd,
);

tooltip.style.top =
tooltipElement.style.top =
125 +
textFieldElement.offsetTop -
textFieldElement.scrollTop +
caret.top +
"px";
tooltip.style.left =
tooltipElement.style.left =
50 +
textFieldElement.offsetLeft -
textFieldElement.scrollLeft +
Expand Down

0 comments on commit 5a52e6d

Please sign in to comment.