Add support for minlength
to <calcite-text-area>
#8626
Labels
0 - new
New issues that need assignment.
ArcGIS Field Apps
Issues logged by ArcGIS Field Apps team members.
blocked
This issue is blocked by another issue.
calcite-components
Issues specific to the @esri/calcite-components package.
enhancement
Issues tied to a new feature or request.
estimate - 3
A day or two of work, likely requires updates to tests.
impact - p2 - want for an upcoming milestone
User set priority impact status of p2 - want for an upcoming milestone
p - medium
Issue is non core or affecting less that 60% of people using the library
Milestone
Check existing issues
Description
The native
<textarea>
element supports bothmaxlength
andminlength
constraints. The<calcite-text-area>
component currently supports amaxlength
constraint but not aminlength
one. The request is to add support for aminlength
constraint.Acceptance Criteria
minLength
prop is passed through to the underlying<textarea>
element as aminlength
constraint.validity.tooShort
key istrue
while the component's value is shorter thanminLength
.Relevant Info
No response
Which Component
text-area
Example Use Case
Specifying a
minlength
constraint can be necessary when constructing a form from a feature layer'sFormTemplate
. Field elements associated with theTextAreaInput
input may be rendered as<calcite-text-area>
components. As a result, the input'sminLength
property should be able to be applied to the component as aminlength
constraint.Priority impact
p3 - want for upcoming milestone
Calcite package
Esri team
ArcGIS Field Apps
Footnotes
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#minlength ↩
The text was updated successfully, but these errors were encountered: