-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cc-form-control-element: add form
getter
#1206
Labels
enhancement
New feature or request
Comments
pdesoyres-cc
added a commit
that referenced
this issue
Oct 18, 2024
pdesoyres-cc
added a commit
that referenced
this issue
Nov 21, 2024
pdesoyres-cc
added a commit
that referenced
this issue
Jan 23, 2025
pdesoyres-cc
added a commit
that referenced
this issue
Jan 29, 2025
pdesoyres-cc
added a commit
that referenced
this issue
Jan 29, 2025
pdesoyres-cc
added a commit
that referenced
this issue
Feb 5, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As stated in MDN documentation: https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/form, native input elements have a readonly property
form
that returns the associated<form>
element (if any).We can do the same for our control elements. Since
CcFormControlElement
uses theElementInternals
API, it's very easy to rely onthis._elementInternal
inner property to return the associated<form>
element.The text was updated successfully, but these errors were encountered: