Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverryan committed Feb 21, 2024
1 parent 292e61a commit 97271c9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/LiveComponent/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@
Additionally, the `prevent` modifier (e.g. `prevent|save`) was removed. Replace
this with the standard Stimulus `:prevent` action option:

```diff
<button
- data-action="live#action
+ data-action="live#action:prevent"
- data-action-name="prevent|save"
+ data-live-action-param="save"
>Save</button>
```
```diff
<button
- data-action="live#action
+ data-action="live#action:prevent"
- data-action-name="prevent|save"
+ data-live-action-param="save"
>Save</button>
```

- [BC BREAK] The `data-event` attribute was removed in favor of using Stimulus
"action parameters": rename `data-event` to `data-live-event-param`. Additionally,
Expand Down

0 comments on commit 97271c9

Please sign in to comment.