We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91091c2 commit bfd3c52Copy full SHA for bfd3c52
1 file changed
core/src/components/select/select.tsx
@@ -1671,6 +1671,14 @@ const getOptionContent = (
1671
return container;
1672
};
1673
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
+ */
1682
const getOptionDefaultSlot = (option: HTMLIonSelectOptionElement): Node[] | null => {
1683
const defaultSlotNodes = Array.from(option.childNodes).filter((node) => {
1684
if (node.nodeType === Node.ELEMENT_NODE) {
0 commit comments