You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: input, textarea, select: layout shifts when error text appears #31030
It would be great if we can keep the input-bottom.sc-ion-input-md element, even if the input is valid. Because 1. layout shifting and 2. missing border. Removing the element with border (which changes element size) removes the border and causes layout changes. And it would be great if we keep the space for the error text.
You can see that the layout shifts and in the end the border disappears.
Ionic v8, Angular v19, Chrome 146.0.7680.153
Workaround: Remove errorText and make your own by using control errors in element below and use ion-item in this case for the line or use css for this. I cannot reproduce this is stackblitz, but in a fresh new Angular project with same setup. No custom stuff. It's weird, but there is something wrong.
This issue has been labeled as community feedback wanted. This label is added to issues that we would like to hear from the community on before moving forward with any final decision on the feature request.
If the requested feature is something you would find useful for your applications, please react to the original post with 👍 (+1). If you would like to provide an additional use case for the feature, please post a comment.
The team will review this feedback and make a final decision. Any decision will be posted on this thread, but please note that we may ultimately decide not to pursue this feature.
changed the title [-]bug: Keep error text space to prevent layout shifting and keep border visible[/-][+]bug: input, textarea, select: layout shifts when error text appears[/+]on Nov 21, 2026
This happens on 9.0.12. When errorText is set without helperText, nothing holds the line under the input while the error is hidden, so the input grows by about 14px when the error appears. Material Design keeps that space reserved, so we're treating this as a bug. ion-textarea and ion-select shift the same way.
The disappearing line has a separate cause: the line belongs to the helper and error text area, which is only rendered while errorText or helperText is set. If errorText is cleared once the control is valid, the area and its line are removed with it. Keep errorText set at all times instead, since the error is only shown once the input has ion-invalid and ion-touched, which Angular adds through form validation.
Until it's fixed, this rule in global.scss reserves the space so the input keeps the same height:
Activity
ionitron-bot commentedon Mar 23, 2026
This issue has been labeled as
community feedback wanted. This label is added to issues that we would like to hear from the community on before moving forward with any final decision on the feature request.If the requested feature is something you would find useful for your applications, please react to the original post with 👍 (
+1). If you would like to provide an additional use case for the feature, please post a comment.The team will review this feedback and make a final decision. Any decision will be posted on this thread, but please note that we may ultimately decide not to pursue this feature.
Thank you!
chore(bot): return community feedback issues to triage after 90 days (i…
[-]bug: Keep error text space to prevent layout shifting and keep border visible[/-][+]bug: input, textarea, select: layout shifts when error text appears[/+]thetaPC commentedon Nov 21, 2026
Thanks for the report, and sorry for the delay.
This happens on 9.0.12. When
errorTextis set withouthelperText, nothing holds the line under the input while the error is hidden, so the input grows by about 14px when the error appears. Material Design keeps that space reserved, so we're treating this as a bug.ion-textareaandion-selectshift the same way.The disappearing line has a separate cause: the line belongs to the helper and error text area, which is only rendered while
errorTextorhelperTextis set. IferrorTextis cleared once the control is valid, the area and its line are removed with it. KeeperrorTextset at all times instead, since the error is only shown once the input hasion-invalidandion-touched, which Angular adds through form validation.Until it's fixed, this rule in
global.scssreserves the space so the input keeps the same height:Tracked as a bug in
core.