Skip to content

Commit da40e2b

Browse files
authored
Documentation for queryAssignedNodes
Based on the discussion on Discord: https://discord.com/channels/1012791295170859069/1291879150654849048/1291879150654849048
1 parent 0555ca6 commit da40e2b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/lit-dev-content/site/docs/v3/components/shadow-dom.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,9 @@ get _slottedChildren() {
187187
}
188188
```
189189
190-
You can also use the `slotchange` event to take action when the assigned nodes change.
190+
The nodes are assigned after the slot is rendered, so you need to check them in `updated`, or if you want to use them in rendering, you can use `slotchange`.
191+
192+
You can use the `slotchange` event to take action when nodes are first assigned or change.
191193
The following example extracts the text content of all of the slotted children.
192194
193195
```js

0 commit comments

Comments
 (0)