Skip to content

Commit

Permalink
Fix anchor with id code example (#3942)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximVanhove authored Jan 5, 2024
1 parent 5397565 commit e3738a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docs/src/en/plugins/anchor.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ Because `x-anchor` accepts a reference to any DOM element, you can use utilities
<div x-data="{ open: false }">
<button id="trigger" @click="open = ! open">Toggle</button>
<div x-show="open" x-anchor="document.getElementById('#trigger')">
<div x-show="open" x-anchor="document.getElementById('trigger')">
Dropdown content
</div>
</div>
Expand Down

0 comments on commit e3738a3

Please sign in to comment.