this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #1212 from Yukaii/bugfix/handle-composition-event

Fix: Prevent list auto-creation during IME composition

authored by

Chee Aun and committed by
GitHub
67f87a2d 8d43f525

+5 -1
+5 -1
src/components/compose.jsx
··· 2324 2324 // Get line before cursor position after pressing 'Enter' 2325 2325 const { key, target } = e; 2326 2326 const hasTextExpander = hasTextExpanderRef.current; 2327 - if (key === 'Enter' && !(e.ctrlKey || e.metaKey || hasTextExpander)) { 2327 + if ( 2328 + key === 'Enter' && 2329 + !(e.ctrlKey || e.metaKey || hasTextExpander) && 2330 + !e.isComposing 2331 + ) { 2328 2332 try { 2329 2333 const { value, selectionStart } = target; 2330 2334 const textBeforeCursor = value.slice(0, selectionStart);