Text area height is relative instead of fixed #8456
Labels
2 - in development
Issues that are actively being worked on.
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.
calcite-components
Issues specific to the @esri/calcite-components package.
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
Actual Behavior
The height of the text-area component is, by default, relative to its container.
Expected Behavior
The height of text area component is fixed, by default.
Reproduction Sample
https://codepen.io/nwhittaker-esri/pen/QWoLyww?editors=1100
Reproduction Steps
Reproduction Version
2.1.0
Relevant Info
Giving the text-area component a block-size of
auto
addresses the immediate issue. Not sure if that introduces other layout issues, though…Regression?
No response
Priority impact
p3 - want for upcoming milestone
Impact
The behavior is surprising and unexpected because it represents a departure from how the native textarea element works. As a result, it requires a workaround to address in certain scenarios.
For a more real world example, consider a text-area with validation. Depending on how the label/input/message components are laid out across slots and shadow DOMs, hiding/showing the message can cause the text area to continuously grow:
Screen.Recording.2023-12-19.at.12.31.03.PM.mov
Calcite package
Esri team
ArcGIS Field Apps
The text was updated successfully, but these errors were encountered: