discourse/plugins/chat/assets/javascripts
Jarek Radosz 36a9b5d0fa
DEV: Introduce a helper for handling events (#25433)
Instead of

```hbs
{{on "input" (action this.foo value="target.value")}}
{{on "input" (action (mut this.bar) value="target.value")}}
```

you can use:

```hbs
{{on "input" (with-event-value this.foo)}}
{{on "input" (with-event-value (fn (mut this.bar)))}}
```

or in gjs:

```gjs
import { fn } from "@ember/helper";
import { on } from "@ember/modifier";
import withEventValue from "discourse/helpers/with-event-value";
…
{{on "input" (withEventValue (fn (mut this.bar)))}}
```
2024-02-28 14:00:53 +01:00
..
discourse DEV: Introduce a helper for handling events (#25433) 2024-02-28 14:00:53 +01:00
lib/discourse-markdown FIX: Allow quoting thread's original message (#24773) 2023-12-11 09:58:00 -03:00
select-kit/addons/components FEATURE: Allow users to manually track threads without replying (#22100) 2023-06-16 12:08:26 +10:00