Skip to content

Commit 9e86ce3

Browse files
authored
Fix comment about ref directive (#1126)
1 parent 4d73d7b commit 9e86ce3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/lit-dev-content/site/docs/v2/templates/directives.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1692,7 +1692,7 @@ will be called bound to the host element automatically.
16921692
class MyElement extends LitElement {
16931693

16941694
render() {
1695-
// Passing ref directive a change callback
1695+
// Passing a change callback to ref directive
16961696
return html`<input ${ref(this.inputChanged)}>`;
16971697
}
16981698

@@ -1706,7 +1706,7 @@ class MyElement extends LitElement {
17061706
class MyElement extends LitElement {
17071707

17081708
render() {
1709-
// Passing ref directive a change callback
1709+
// Passing a change callback to ref directive
17101710
return html`<input ${ref(this.inputChanged)}>`;
17111711
}
17121712

0 commit comments

Comments
 (0)