From 6afcdafcdf47187d23838e437f29e09fe0657b82 Mon Sep 17 00:00:00 2001 From: akshayantony55 Date: Tue, 21 Nov 2023 22:52:48 +0530 Subject: [PATCH] fix: #5363, Mention: Page Breaks when navigating to Mention component --- components/lib/mention/Mention.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/lib/mention/Mention.js b/components/lib/mention/Mention.js index 6c7f443c2d..3df85d6431 100644 --- a/components/lib/mention/Mention.js +++ b/components/lib/mention/Mention.js @@ -92,8 +92,8 @@ export const Mention = React.memo( }; const alignOverlay = () => { - if(!triggerState) { - return + if (!triggerState) { + return; } const { key, index } = triggerState; const value = inputRef.current.value;