diff --git a/src/hooks/useHtmlPaste/index.ts b/src/hooks/useHtmlPaste/index.ts index 9290550670df..422952c68435 100644 --- a/src/hooks/useHtmlPaste/index.ts +++ b/src/hooks/useHtmlPaste/index.ts @@ -51,9 +51,8 @@ const useHtmlPaste: UseHtmlPaste = (textInputRef, preHtmlPasteCallback, removeLi } // Pointer will go out of sight when a large paragraph is pasted on the web. Refocusing the input keeps the cursor in view. - // to avoid the keyboard in mobile web if using blur() and focus() function, we just need to dispatch the event to trigger the onFocus handler - - // need to trigger the bubbled "focusin" event to make sure the onFocus handler is triggered + // To avoid the keyboard toggle issue in mWeb if using blur() and focus() functions, we just need to dispatch the event to trigger the onFocus handler + // We need to trigger the bubbled "focusin" event to make sure the onFocus handler is triggered textInputHTMLElement.dispatchEvent( new FocusEvent('focusin', { bubbles: true,