dify/web/app/components/base/input
yyh 3997749867
fix: add IME-safe onPressEnter prop to base Input component (#31757)
The base Input component lacked IME composition detection, causing
Enter key presses during CJK input method candidate selection to
mistakenly trigger form submissions.

Add an `onPressEnter` prop with built-in IME safety using
compositionStart/End tracking and nativeEvent.isComposing checks
(with Safari 50ms delay workaround). Migrate all 5 call sites
from manual onKeyDown Enter detection to onPressEnter.
2026-01-30 17:56:25 +08:00
..
index.spec.tsx test: unify i18next mocks into centralized helpers (#30376) 2025-12-31 16:53:33 +09:00
index.stories.tsx chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
index.tsx fix: add IME-safe onPressEnter prop to base Input component (#31757) 2026-01-30 17:56:25 +08:00