0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-09 21:45:25 +08:00
discourse/plugins/discourse-ai/test/javascripts
David Battersby 3685518098
FIX: AI bot submission in safari during IME composition (#40276)
Follow up to #40167 which added `event.isComposing` on the keydown
check. This works fine in Chrome but Safari has some known bugs and
quirks for `isComposing` during IME text composition. In Safari, the
event order for composition and key events is often out-of-order.

This change switches the approach to use `beforeinput` and check for
`insertLineBreak` on the textarea. It also adds a `<form>` wrapper
around the helper-prompt input, so the browser filters IME confirmation
natively on both Chrome and Safari.
2026-05-26 16:27:31 +08:00
..
acceptance FIX: AI bot submission in safari during IME composition (#40276) 2026-05-26 16:27:31 +08:00
fixtures
integration/components FIX: AI bot submission in safari during IME composition (#40276) 2026-05-26 16:27:31 +08:00
unit FIX: Skip discovery search when header search is scoped to PMs (#40172) 2026-05-19 14:53:25 -03:00
.gitkeep