discourse-ai/assets
David Taylor 3c7bd9bbd3
FIX: Tool editing code editor resetting on every keypress (#765)
`withEventValue` is not needed here, because the `onChange` event comes from ace, not a normal DOM event. But even with that fix, it seems AceEditor doesn't yet work well with the DDAU pattern. On every keypress, the editor re-renders and puts the cursor back at the beginning.

For now, this commit removes the `@onChange` hook, so we go back to relying on the two-way binding of `@content`.

Followup to a5a39dd2ee
2024-08-22 10:18:16 +01:00
..
javascripts FIX: Tool editing code editor resetting on every keypress (#765) 2024-08-22 10:18:16 +01:00
stylesheets/modules UX: add dark-light mixin for better visibility in dark themes (#764) 2024-08-22 01:24:18 +02:00