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

[Feature Request]: Native form support for input fields and other OmniFormElement child classes #59

Open
3 tasks done
BOTLANNER opened this issue Dec 19, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@BOTLANNER
Copy link
Contributor

What type of enhancement/feature is this?

Behaviour Changes to existing UI Components

Description

Update the base class OmniFormElement (and child classes where/if necessary) to provide native form support for all applicable components.

This can be achieved with the formadata event, and/or the ElementInternals interface.
Note that there are some browser compatibility considerations to take into account for both routes when determining the correct way to implement .

Refer to the following article for more detail: Web Components Can Now Be Native Form Elements

Use Case/Reasoning for feature

The input fields and select derive from OmniFormElement however they cannot be directly used in a native form in their current state. This can be misleading as the base class name implies support for forms. All web components that derive this class should have native form support as the name indicates.

Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I have searched for existing issues and to the best of my knowledge this is not a duplicate
  • This is a single feature
@BOTLANNER BOTLANNER added the enhancement New feature or request label Dec 19, 2022
@chromaticWaster
Copy link
Contributor

Also consider this for the Button component.

@chromaticWaster
Copy link
Contributor

Also consider patterns for form validation eg: email field regex pattern.

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

No branches or pull requests

2 participants