QInput clearable does not work with v-model.trim #12431
Labels
area/components
bug/1-repro-available
A reproduction is available and needs to be confirmed.
flavour/quasar-cli-webpack
kind/bug 🐞
Qv2 🔝
Quasar v2 issues
What happened?
When the clearable button is pressed, the text is not cleared. In the devtools console you will see an error:
Cannot read properties of null (reading 'trim')
. This is because the clearable button sets the model to null.What did you expect to happen?
The text to clear with no error.
Reproduction URL
https://codepen.io/smakinson/pen/MWOmVaw
How to reproduce?
Use a
QInput
with clearable andv-model.trim
Flavour
Quasar CLI (@quasar/cli | @quasar/app)
Areas
Components (quasar)
Platforms/Browsers
No response
Quasar info output
Relevant log output
Additional context
No response
The text was updated successfully, but these errors were encountered: