-
Notifications
You must be signed in to change notification settings - Fork 77
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
Update form components to leverage ElementInternals API #8126
Labels
1 - assigned
Issues that are assigned to a sprint and a team member.
blocked
This issue is blocked by another issue.
calcite-components
Issues specific to the @esri/calcite-components package.
p - medium
Issue is non core or affecting less that 60% of people using the library
refactor
Issues tied to code that needs to be significantly reworked.
spike
Issues that need quick investigations for time estimations, prioritization, or a quick assessment.
Milestone
Comments
This was referenced Jan 26, 2024
jcfranco
added a commit
that referenced
this issue
Feb 10, 2024
…e props are considered in form validation (#8655) **Related Issue:** #8647 ## Summary This ensures `pattern`, `minlength`, `maxlength`, `min`, `max`, `step` are set on the internal form input based on the matching type. **Note**: `minlength` and `maxlength` won't trigger constraint validation unless a user interacts with the input (see [`minlength` spec](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#setting-minimum-input-length-requirements:-the-minlength-attribute:~:text=Constraint%20validation%3A%20If%20an%20element%20has%20a%20minimum,element%20is%20suffering%20from%20being%20too%20short.) and [`maxlength` spec](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#setting-minimum-input-length-requirements:-the-minlength-attribute:~:text=Constraint%20validation%3A%20If%20an%20element%20has%20a%20maximum,element%20is%20suffering%20from%20being%20too%20long.)). This will have to be a known limitation until #8126 is completed.
Elijbet
pushed a commit
that referenced
this issue
Feb 15, 2024
…e props are considered in form validation (#8655) **Related Issue:** #8647 ## Summary This ensures `pattern`, `minlength`, `maxlength`, `min`, `max`, `step` are set on the internal form input based on the matching type. **Note**: `minlength` and `maxlength` won't trigger constraint validation unless a user interacts with the input (see [`minlength` spec](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#setting-minimum-input-length-requirements:-the-minlength-attribute:~:text=Constraint%20validation%3A%20If%20an%20element%20has%20a%20minimum,element%20is%20suffering%20from%20being%20too%20short.) and [`maxlength` spec](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#setting-minimum-input-length-requirements:-the-minlength-attribute:~:text=Constraint%20validation%3A%20If%20an%20element%20has%20a%20maximum,element%20is%20suffering%20from%20being%20too%20long.)). This will have to be a known limitation until #8126 is completed.
6 tasks
6 tasks
Open
6 tasks
3 tasks
With the transition to Lit from Stencil, Calcite is ensuring stability before proceeding with |
This is blocked by lit/rfcs#45. |
6 tasks
6 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
1 - assigned
Issues that are assigned to a sprint and a team member.
blocked
This issue is blocked by another issue.
calcite-components
Issues specific to the @esri/calcite-components package.
p - medium
Issue is non core or affecting less that 60% of people using the library
refactor
Issues tied to code that needs to be significantly reworked.
spike
Issues that need quick investigations for time estimations, prioritization, or a quick assessment.
Description
Lit is looking to add support for
ElementInternals
, so we should explore leveraging this API instead of our custom solution.cc @eriklharper @benelan
Blocked issues: #9319, #4681, #5026, #8626, #7731
Proposed Advantages
Improved form integration and leaner components.
Which Component
All components implementing
FormComponent
:checkbox
combobox
input-date-picker
input-number
input-text
input-time-picker
input-time-zone
input
meter
radio-button
rating
segmented-control
select
slider
switch
text-area
Relevant Info
Safari added support for
ElementInternals
at 16.4, so we may have to consider the following if we update form components to use this API:Calcite package
Related issues
validity
,validationMessage
, andwillValidate
properties #7413high
support
The text was updated successfully, but these errors were encountered: