Skip to content

Commit

Permalink
Fix issue knadh#2
Browse files Browse the repository at this point in the history
  • Loading branch information
Mesfrum committed Feb 24, 2024
1 parent 8c4ea42 commit 6ead916
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/floatype.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion floatype.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export function floatype(el, options = {}) {

// Update shadow div content up to the cursor position
const cl = "floatype-caret";
shadow.innerHTML = el.value.substring(0, start) + `<span id="${cl}" style="display: inline-block;">${el.value.substring(start)}</span>`;
shadow.innerHTML = el.value.substring(0, start) + `<span id="${cl}" style="display: inline-block;">[caret]</span>`;

const m = document.getElementById(cl);
const rect = el.getBoundingClientRect();
Expand Down

0 comments on commit 6ead916

Please sign in to comment.