* Ensures the slotted label element has an ID for aria-labelledby. * If no ID exists, we assign one using our generated labelTextId.
()
| 763 | * If no ID exists, we assign one using our generated labelTextId. |
| 764 | */ |
| 765 | private setSlottedLabelId() { |
| 766 | const slottedLabel = this.labelSlot; |
| 767 | if (slottedLabel && !slottedLabel.id) { |
| 768 | slottedLabel.id = this.labelTextId; |
| 769 | } |
| 770 | } |
| 771 | |
| 772 | /** |
| 773 | * Returns the ID to use for aria-labelledby on the native input, |