Skip to content

Commit

Permalink
Fix x-trap.noscroll example code (#4496)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamshcc authored Jan 3, 2025
1 parent e85716d commit 28a2aa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docs/src/en/plugins/focus.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ For example:

```alpine
<div x-data="{ open: false }">
<button>Open Dialog</button>
<button @click="open = true">Open Dialog</button>
<div x-show="open" x-trap.noscroll="open">
Dialog Contents
Expand Down

0 comments on commit 28a2aa8

Please sign in to comment.