QInput autogrow doesn't restore state if toggled on and off dynamically (leaves inline style in place) #17535
Labels
area/components
bug/2-confirmed
We have reproduce the problem and confirmed that this is a bug.
flavour/vite-plugin
Bugs related to Vite usage with Quasar
kind/bug 🐞
Qv2 🔝
Quasar v2 issues
What happened?
QInput is defined with type="textarea" with autogrow that can be toggled on/off. I toggled autogrow prop on and off using a button. After setting autogrow to true and then back to false it didn't change text area back to scrolling mode as it initally was. This is due to inline style that is inserted to the q-input when autogrow is true but never removed.
What did you expect to happen?
If I dynamically change autogrow on/off then q-input component should respect that and change mode between autogrow and scrolling.
Reproduction URL
https://codepen.io/jannhama/pen/bGXNbeK?editors=1111
How to reproduce?
Flavour
Vite Plugin (@quasar/vite-plugin)
Areas
Components (quasar)
Platforms/Browsers
Firefox, Chrome
Quasar info output
Relevant log output
No response
Additional context
Inline style with
overflow y-hidden
in the end is left to the component even if autogrow is toggled off.<div class="q-field__control-container col relative-position row no-wrap q-anchor--skip" style=""><textarea class="q-field__native q-placeholder" tabindex="0" rows="6" id="f_a9f39d7b-5f49-4548-9505-23715853e4e8" value="text line text line text line text line text line text line text line text line text line text line text line text line text line text line text line text line text line" style="overflow-y: hidden; height: 329px;"></textarea><!----></div>
The text was updated successfully, but these errors were encountered: