When removing the text-area max-length attribute, the component gets into a bad state where the text gets removed but the user will see a red border if they type in any characters.
This happens either when using maxLength={undefined} in Stencil or textAreaElement.removeAttribute("max-length"). It does not happen when explicitly setting textAreaElement.maxLength = undefined, however this causes typescript to complain.
Expected Behavior
When max-length is removed, the component acts as if max-length was never set.
Check existing issues
Actual Behavior
When removing the text-area
max-length
attribute, the component gets into a bad state where the text gets removed but the user will see a red border if they type in any characters.This happens either when using
maxLength={undefined}
in Stencil ortextAreaElement.removeAttribute("max-length")
. It does not happen when explicitly settingtextAreaElement.maxLength = undefined
, however this causes typescript to complain.Expected Behavior
When
max-length
is removed, the component acts as ifmax-length
was never set.Reproduction Sample
https://codepen.io/mpayson/pen/mdNpdaR
Reproduction Steps
Reproduction Version
2.13.0
Relevant Info
No response
Regression?
No response
Priority impact
impact - p3 - not time sensitive
Impact
No response
Calcite package
Esri team
ArcGIS Data Pipelines