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]: Enhancing Validation for Form Components #10487

Open
1 task done
nnaydenow opened this issue Jan 7, 2025 · 1 comment
Open
1 task done

[Feature Request]: Enhancing Validation for Form Components #10487

nnaydenow opened this issue Jan 7, 2025 · 1 comment

Comments

@nnaydenow
Copy link
Contributor

Feature Request Description

Native HTML form elements provide detailed information about the validity of specific fields. This depends on how they are configured using attributes like required, min, max, maxlength, and others.

MDN: HTMLObjectElement Validity
MDN: ValidityState API
This built-in validity helps improve how form elements function, how they are styled (e.g., using :invalid or :valid selectors), and how they provide feedback about why a component may be invalid.

Proposed Solution

By integrating the ElementsInternal API into ui5-webcomponents, the form web components can define their validity based on their specific properties and attributes.

Currently, only the required property is reflected in the validity object of the custom element.

Proposed Alternatives

No response

Organization

No response

Additional Context

No response

Priority

Low

Privacy Policy

  • I’m not disclosing any internal or sensitive information.
@nnaydenow
Copy link
Contributor Author

Topic P

  • ui5-checkbox
  • ui5-select

Topic BAL

  • ui5-color-picker
  • ui5-date-picker
  • ui5-daterange-picker
  • ui5-datetime-picker
  • ui5-file-uploader
  • ui5-step-input
  • ui5-switch
  • ui5-time-picker

Topic RL

  • ui5-combobox
  • ui5-input
  • ui5-multi-combobox
  • ui5-multi-input
  • ui5-range-slider
  • ui5-slider
  • ui5-textarea

Topic RD

  • ui5-radio-button

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant