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

Height and width of text-area with max-length change with validity changes #11592

Open
2 of 6 tasks
nwhittaker opened this issue Feb 19, 2025 · 0 comments
Open
2 of 6 tasks
Labels
0 - new New issues that need assignment. ArcGIS Field Apps Issues logged by ArcGIS Field Apps team members. bug Bug reports for broken functionality. Issues should include a reproduction of the bug. impact - p2 - want for an upcoming milestone User set priority impact status of p2 - want for an upcoming milestone needs triage Planning workflow - pending design/dev review.

Comments

@nwhittaker
Copy link
Contributor

Check existing issues

Actual Behavior

Given a <calcite-text-area> element with max-length and validation-message attributes defined, toggling the element's status between valid and invalid shrinks its width and causes the height of the textarea to ever increase.

Screen.Recording.2025-02-19.at.3.49.23.PM.mov

Expected Behavior

The textarea's height and width do not change in response to status changes.

Reproduction Sample

https://codepen.io/nwhittaker-esri/pen/MYWKPZo

Reproduction Steps

  1. Visit the repro and enter a value into the text-area.
  2. Clear the value and see the text-area dimensions change and an error message appears.
  3. Re-enter the value and see the error message disappears.
  4. Re-clear the value and see the text-area's height increases and the error message reappears.
  5. Repeat from step 3.

Reproduction Version

3.0.2

Relevant Info

Possibly related to #8456.

Regression?

No response

Priority impact

impact - p2 - want for an upcoming milestone

Impact

A workaround for the likeliest use-case is to enable the limit-text attribute, however this will not work for preventing other validity errors from triggering the bug.

Calcite package

  • @esri/calcite-components
  • @esri/calcite-components-react
  • @esri/calcite-design-tokens
  • @esri/calcite-ui-icons
  • @esri/eslint-plugin-calcite-components

Esri team

ArcGIS Field Apps

@nwhittaker nwhittaker added 0 - new New issues that need assignment. bug Bug reports for broken functionality. Issues should include a reproduction of the bug. needs triage Planning workflow - pending design/dev review. labels Feb 19, 2025
@github-actions github-actions bot added ArcGIS Field Apps Issues logged by ArcGIS Field Apps team members. impact - p2 - want for an upcoming milestone User set priority impact status of p2 - want for an upcoming milestone labels Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 - new New issues that need assignment. ArcGIS Field Apps Issues logged by ArcGIS Field Apps team members. bug Bug reports for broken functionality. Issues should include a reproduction of the bug. impact - p2 - want for an upcoming milestone User set priority impact status of p2 - want for an upcoming milestone needs triage Planning workflow - pending design/dev review.
Projects
None yet
Development

No branches or pull requests

1 participant