Skip to content

Commit

Permalink
docs: Bad method name in the context (#787)
Browse files Browse the repository at this point in the history
  • Loading branch information
chadyred authored Sep 8, 2024
1 parent e6f1887 commit fe89dff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/handbook/03_building_something_real.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ Note that in this case, clicking the link will also cause the browser to follow
}
```

Similarly, our `source` target need not be an `<input type="text">`. The controller only expects it to have a `value` property and a `select()` method. That means we can use a `<textarea>` instead:
Similarly, our `source` target need not be an `<input type="text">`. The controller only expects it to have a `value` property and a `copy()` method. That means we can use a `<textarea>` instead:

```html
PIN: <textarea data-clipboard-target="source" readonly>3737</textarea>
Expand Down

0 comments on commit fe89dff

Please sign in to comment.