Validation hint overlaps next input in q-form #17807
Labels
area/cli
area/components
area/style
bug/1-repro-available
A reproduction is available and needs to be confirmed.
flavour/quasar-cli-vite
kind/bug 🐞
Qv2 🔝
Quasar v2 issues
What happened?
When using q-form with q-input, the validation hint (or error message) appears below the input but doesn't push the following elements down. Instead, it overlaps the next input, making the layout break visually. This behavior seems to be caused by the hint being positioned absolutely. I want the inputs to be close to each other. The validation hint should dynamically adjust the layout, pushing the next input downward when it appears. It shouldn't require developers to manually add extra spacing between inputs to "prepare" for possible validation messages. Everything should be adaptive by default.
The only solution I came up with after inspecting the code is by making a reset for these 2 classes:
Is it possible to fix this, or was it designed this way on purpose (if so, why)?
What did you expect to happen?
I used
q-form
with two inputs and triggered the validation error.Reproduction URL
https://stackblitz.com/edit/quasarframework-stackblitz-templates-vzpxcz8x?file=src%2Fpages%2FIndexPage.vue
How to reproduce?
Flavour
Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)
Areas
Style & Identity (quasar), Quasar CLI Commands/Configuration (@quasar/cli | @quasar/app-webpack | @quasar/app-vite), Components (quasar)
Platforms/Browsers
Firefox, Chrome, Safari, Microsoft Edge, iOS, Android, Electron, Other
Quasar info output
Relevant log output
Additional context
No response
The text was updated successfully, but these errors were encountered: