Skip to content

Commit

Permalink
fix: #5363, Mention: Page Breaks when navigating to Mention component (
Browse files Browse the repository at this point in the history
…#5364)

* fix: #5363, Mention: Page Breaks when navigating to Mention component

* fix: #5363, Mention: Page Breaks when navigating to Mention component

* fix: #5363, Mention: Page Breaks when navigating to Mention component

---------

Co-authored-by: akshayantony55 <[email protected]>
  • Loading branch information
akshayaqburst and akshayantony55 authored Nov 21, 2023
1 parent 24ff22a commit d4d5934
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/lib/mention/Mention.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ export const Mention = React.memo(
};

const alignOverlay = () => {
if (!triggerState) {
return;
}

const { key, index } = triggerState;
const value = inputRef.current.value;
const position = DomHandler.getCursorOffset(inputRef.current, value.substring(0, index - 1), value.substring(index), key);
Expand Down

0 comments on commit d4d5934

Please sign in to comment.