ionic-team / ionic-team/ionic-framework

bug: Keep error text space to prevent layout shifting and keep border visible

Offen
#31,030 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
community feedback wanted
Vorherrschende Sprache
TypeScript
Sterne
52.7k
Forks
13.3k
Ø Merge
1 T. 15 Std.
Gemergte PRs (30 T.)
51

Beschreibung

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.

```html

```

![Image](https://github.com/user-attachments/assets/bd07ef03-1196-45de-8b97-b96af5b3c96e)

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.