Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
emargareten committed Nov 8, 2023
1 parent 3a9c3d6 commit d127bd0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Expand Up @@ -181,6 +181,14 @@ const { show, close, redirect } = useModal()
</script>
```
The `redirect` method will redirect to the base route, you can pass in all inertia visit options as a parameter.
```javascript
redirect({ preserveScroll: true })
```
The `close` method will close the modal without redirecting to the base route.
## Testing
```bash
Expand Down

0 comments on commit d127bd0

Please sign in to comment.