Skip to content

Commit 9515e10

Browse files
committed
update
1 parent bf31ca0 commit 9515e10

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • src/routes/reference/jsx-attributes

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@ Event handler, or a handler/data pair for delegated binding.
3030

3131
## Behavior
3232

33-
- Common delegated events are handled at the document level instead of attaching one listener per element.
33+
- Events in Solid's delegated event set use document-level delegation; other `on*` handlers attach directly to the element.
3434
- Event names are mapped to lower case, so `onClick` listens to `click`.
3535
- The two-element array form passes the first item as bound data to the handler.
36-
- Delegated bindings are not reactive and are not rebound automatically.
36+
- Delegated bindings are not reactive and are not rebound automatically when the handler reference changes.
37+
- `onInput` uses the native input event, and `onChange` uses the native change event.
3738
- For direct element listeners, custom event casing, or listener options, use [`on:*`](/reference/jsx-attributes/on).
3839

3940
## Examples

0 commit comments

Comments
 (0)