Skip to content

Commit bf31ca0

Browse files
committed
update
1 parent 0ef73e8 commit bf31ca0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • src/routes/reference/jsx-attributes

src/routes/reference/jsx-attributes/on.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ Listener passed to `addEventListener`.
3333
- `on:name={handler}` attaches a listener for the event named `name`.
3434
- The listener is attached directly to the element instead of using Solid's delegated event system.
3535
- Event names keep the text after `on:` exactly as written.
36+
- When the value changes, Solid removes the previous direct listener and adds the new one.
3637
- Listener options such as `once`, `passive`, `capture`, and `signal` can be provided by passing an object that implements `handleEvent`.
38+
- `oncapture:*` remains available as a deprecated capture-specific form.
3739

3840
## Examples
3941

@@ -65,4 +67,3 @@ The object-listener form was added in Solid 1.9.0.
6567
## Related
6668

6769
- [`on*`](/reference/jsx-attributes/on_)
68-
- [`oncapture:*`](/reference/jsx-attributes/on)

0 commit comments

Comments
 (0)