Skip to content

Commit bfd3c52

Browse files
committed
docs(select): add JSDocs to function
1 parent 91091c2 commit bfd3c52

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

core/src/components/select/select.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1671,6 +1671,14 @@ const getOptionContent = (
16711671
return container;
16721672
};
16731673

1674+
/**
1675+
* Returns the child nodes that belong to the default slot of an
1676+
* option element, excluding any nodes that are assigned to named
1677+
* slots.
1678+
*
1679+
* @param option - The `ion-select-option` element to extract default-slot nodes from.
1680+
* @returns An array of default slot nodes, or `null` if none are found.
1681+
*/
16741682
const getOptionDefaultSlot = (option: HTMLIonSelectOptionElement): Node[] | null => {
16751683
const defaultSlotNodes = Array.from(option.childNodes).filter((node) => {
16761684
if (node.nodeType === Node.ELEMENT_NODE) {

0 commit comments

Comments
 (0)