Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
30d5e84
Modify Form logic to properly update with IME on FF
joon-won Mar 12, 2025
72c5e47
Create clean-suits-own.md
tiffanynwyeung Mar 13, 2025
e615f46
fix(ui-react-ai): Addressing cross-browser inconsistencies in AIConve…
joon-won Mar 13, 2025
60a2326
Merge branch 'aws-amplify:joonwonc/pinyin-fix' into joonwonc/pinyin-fix
joon-won Mar 21, 2025
dd4e28a
Merge branch 'main' into joonwonc/pinyin-fix
joon-won Mar 24, 2025
889aaec
Merge branch 'aws-amplify:joonwonc/pinyin-fix' into joonwonc/pinyin-fix
joon-won Mar 24, 2025
c4bd242
Remove typecasting
joon-won Mar 24, 2025
eb1008f
Add unit tests for AIConversation Form for IME input
joon-won Mar 25, 2025
4227cb1
Merge branch 'main' into joonwonc/pinyin-fix
joon-won Mar 25, 2025
04de4bf
Remove duplicate changeset
joon-won Mar 25, 2025
877fb92
fix(storage-browser): remove key parsing in useDeleteView (#6450)
calebpollman Mar 25, 2025
2ff95b3
Merge branch 'aws-amplify:joonwonc/pinyin-fix' into joonwonc/pinyin-fix
joon-won Mar 25, 2025
b662d67
Merge branch 'main' into joonwonc/pinyin-fix
joon-won Mar 25, 2025
8fa2e93
update test with appropriate clause
joon-won Mar 25, 2025
cfc2a45
Update AIConv form details with incoming ai doc change
joon-won Mar 26, 2025
3b5dc0e
Merge branch 'main' into joonwonc/pinyin-fix
joon-won Mar 26, 2025
431af0e
Merge branch 'main' into joonwonc/pinyin-fix
joon-won Mar 26, 2025
92419c3
Merge branch 'main' into joonwonc/pinyin-fix
joon-won Mar 31, 2025
49299b6
Merge branch 'main' into joonwonc/pinyin-fix
joon-won Apr 1, 2025
fca43ca
Merge branch 'main' into joonwonc/pinyin-fix
joon-won Apr 1, 2025
767bd5b
Merge branch 'main' into joonwonc/pinyin-fix
joon-won Apr 1, 2025
7d47551
Merge branch 'main' into joonwonc/pinyin-fix
joon-won Apr 4, 2025
ae205ef
Merge branch 'main' into joonwonc/pinyin-fix
joon-won Apr 7, 2025
00f80a3
Merge branch 'main' into joonwonc/pinyin-fix
joon-won Apr 8, 2025
c20b4fa
Merge branch 'main' into joonwonc/pinyin-fix
joon-won Apr 10, 2025
8e0fe49
Merge branch 'main' into joonwonc/pinyin-fix
joon-won Apr 16, 2025
cab9397
Rebase composition update with main
joon-won Apr 16, 2025
847c467
Rebase AIConversation with latest main
joon-won Apr 16, 2025
a3dbe4e
Simplify the logic
joon-won Apr 16, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fluffy-flowers-grab.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@aws-amplify/ui-react-ai': patch
---

fix(ui-react-ai): Addressing cross-browser inconsistencies in AIConversation IME input handling
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,16 @@ export const Form: Required<ControlsContextProps>['Form'] = ({
rows={1}
value={input?.text ?? ''}
testId="text-input"
onCompositionStart={() => setComposing(true)}
onCompositionEnd={() => setComposing(false)}
onCompositionStart={() => {
setComposing(true);
}}
onCompositionEnd={(e) => {
setComposing(false);
setInput?.((prevValue) => ({
...prevValue,
text: (e.target as HTMLTextAreaElement).value,
}));
}}
onKeyDown={(e) => {
// Submit on enter key if shift is not pressed also
const shouldSubmit = !e.shiftKey && e.key === 'Enter' && !composing;
Expand All @@ -120,7 +128,7 @@ export const Form: Required<ControlsContextProps>['Form'] = ({
onChange={(e) => {
setInput?.((prevValue) => ({
...prevValue,
text: e.target.value,
text: (e.target as HTMLTextAreaElement).value,
}));
}}
/>
Expand Down
Loading