Open KammererTob opened 4 months ago
From the source code here you can see that the dropdown icon gets rendered when loading
is not true, among other conditions.
So basically the dropdown-icon
and the spinner
from the loading state of the field
are never going to render at the same time. But they take up the same space(as the error icon and generally the inner append part of the q-field
so this 'jumping around' does not occur).
Now in your case you hide the dropdown icon so the extra same-width space(that would be for both loading spinner and dropdown icon) is not initially rendered. This makes the input to grow when the loading happens and the spinner renders.
You could force the .q-field-append
content to be absolute/fixed so they don't take up actual space and force the input to grow.
Of course in order to do that you would have to also do this input-style="position: relative;"
or atleast something that has a relative position.
Like this.
Hope this helps
What happened?
Using
QSelect
withuse-input
andhide-dropdown-icon
makes the input width jump when the loading spinner shows.What did you expect to happen?
The input width to not change.
Reproduction URL
https://jsfiddle.net/2jqn579y/22/
How to reproduce?
Flavour
Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)
Areas
Components (quasar)
Platforms/Browsers
Firefox
Quasar info output
Relevant log output
No response
Additional context
No response