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

How to create a formAssociated custom element with Solidjs #15

Open
DynamicArray opened this issue Jan 5, 2023 · 3 comments
Open

How to create a formAssociated custom element with Solidjs #15

DynamicArray opened this issue Jan 5, 2023 · 3 comments

Comments

@DynamicArray
Copy link

I'm new to custom elements but, from what I've read, it would be within this wrapper that the formAssociated setting would need to be made.

Are there plans to update this library to support that?

Regards
John

@ryansolid
Copy link
Owner

Hmm.. yeah I've never seen that before. They probably added it to the spec in the past few years. The way it works does suggest we'd need to make this an option for the wrapper.

@DynamicArray
Copy link
Author

Likely to be something that happens soon? I'd have a crack at a patch myself, but I think it might be beyond my skill set.

I've got a workaround for now, that creates a corresponding input in the owner document, but it's untidy...

@Sleepful
Copy link

yeah this is rather important, access to internals https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/attachInternals is equally important, without these there's little reason to not use something like Lit instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants