-
-
Notifications
You must be signed in to change notification settings - Fork 832
Closed
Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Stencil Version
4.33
Current Behavior
@AttachInternals() internals!: ElementInternals;
cannot be used without
formAssociated: true in the metadata.
because of a condition in the compiler
Expected Behavior
@AttachInternals() internals!: ElementInternals;
should work without formAssociated: true in the metadata.
CustomStateSet can now be used without formAssociated for components that are not formAssociated.
Future improvement: Add stencil support for custom state / :state().
System Info
Steps to Reproduce
add
@AttachInternals() internals!: ElementInternals;
to a component, an console error will be shown
Code Reproduction URL
Additional Information
Will commit a fix for it, the solution is quite easy:
https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/attachInternals
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels