Skip to content

Commit

Permalink
Correct mutationType value typos
Browse files Browse the repository at this point in the history
The potential `mutationType` values are [update][] and [remove][], not
`updated` and `removed`.

[update]: https://github.com/bigskysoftware/idiomorph/blob/v0.3.0/src/idiomorph.js#L284
[remove]: https://github.com/bigskysoftware/idiomorph/blob/v0.3.0/src/idiomorph.js#L294
  • Loading branch information
seanpdoyle committed Aug 29, 2024
1 parent 7e60963 commit e61ff96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _source/reference/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ Fires before Turbo morphs an element's attributes. The [event.target][] referenc
| `event.detail` property | Type | Description
|---------------------------|---------------------------|------------
| `attributeName` | `string` | the name of the attribute to be mutated
| `mutationType` | `"updated" \| "removed"` | how the attribute will be mutated
| `mutationType` | `"update" \| "remove"` | how the attribute will be mutated

### `turbo:morph-element`

Expand Down

0 comments on commit e61ff96

Please sign in to comment.