Browse Source

Fix anchor with id code example (#3942)

Maxim Vanhove 1 year ago
parent
commit
e3738a32d8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/docs/src/en/plugins/anchor.md

+ 1 - 1
packages/docs/src/en/plugins/anchor.md

@@ -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>