Skip to content

Commit

Permalink
Fix Loader Stop Event Name (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
pykettk authored Jul 17, 2024
1 parent c7f610e commit e26823f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/Features.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ inside the [Livewire docs](https://laravel-livewire.com/docs/2.x/reference#globa
- magewire:update
- magewire:available
- magewire:loader:start ```(event) => {}```
- magewire:loader:stop ```(event) => {}```
- magewire:loader:done ```(event) => {}```

### Lifecycle Hooks
[Read all about hooks](https://laravel-livewire.com/docs/2.x/reference#js-hooks)
Expand Down Expand Up @@ -875,7 +875,7 @@ Since version: `1.10.0`
window.addEventListener('magewire:loader:start', () => {
document.body.style.cursor = 'wait'
})
window.addEventListener('magewire:loader:stop', () => {
window.addEventListener('magewire:loader:done', () => {
document.body.style.cursor = 'pointer'
})
</script>
Expand Down

0 comments on commit e26823f

Please sign in to comment.