Skip to content
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

feat(Slider): enable support for form-associated #1369

Merged
merged 1 commit into from
Dec 11, 2024
Merged

Conversation

dgonzalezr
Copy link
Collaborator

Description

This PR enables support for form-associated custom elements, allowing them to participate in HTML forms:

https://stenciljs.com/docs/forms#using-form-associated-custom-elements
https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/attachInternals

To attach the component to a form, users need to do so manually. With this PR, users only need to be aware of setting the component name attribute/property to be linked to the form.

Related Issue

Fixes #ISSUE_NUMBER

Documentation

Screenshots (if applicable)

CleanShot.2024-12-11.at.15.37.27.mp4

Checklist

  • I have read the CONTRIBUTING document.
  • I have read the CODE OF CONDUCT document.
  • I have reviewed my code.
  • I have tested the changes locally.
  • I have updated the documentation (if applicable).
  • I have added unit tests and e2e tests (if applicable).
  • I have requested reviews from relevant team members.

Additional Notes

@dgonzalezr dgonzalezr added the feature 🛠 New feature or request label Dec 11, 2024
@dgonzalezr dgonzalezr merged commit 1e71072 into main Dec 11, 2024
7 checks passed
@dgonzalezr dgonzalezr deleted the feat/slider branch December 11, 2024 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 🛠 New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants