-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Q-Input and v-model.trim and clearable does not work on Q2 #10376
Comments
I can confirm, pressing clear input on the first input with the Here's a codepen: |
This should be "enhanced" in Vue itself. Please use a slot and add yourself a QBtn/QIcon with a click handler to reset the model to an empty string instead of null. No way around it unless 1) Vue handles null value and 2) we introduce a breaking change and reset model to empty string (which is definitely a no-go). |
So last remark 'cause it had worked before in Qv1: |
Related: [https://github.com/quasarframework/quasar/issues/11423](https://github.com/quasarframework/quasar/issues/11423), [https://github.com/quasarframework/quasar/issues/10376](https://github.com/quasarframework/quasar/issues/10376), [quasarframework#10362 [https://github.com/quasarframework/quasar/issues/12431](https://github.com/quasarframework/quasar/issues/12431).
...to prevent issue duplicating Related: [https://github.com/quasarframework/quasar/issues/11423](https://github.com/quasarframework/quasar/issues/11423), [https://github.com/quasarframework/quasar/issues/10376](https://github.com/quasarframework/quasar/issues/10376), [quasarframework#10362 [https://github.com/quasarframework/quasar/issues/12431](https://github.com/quasarframework/quasar/issues/12431).
…0362 #12431 (#12432) * fix(docs): Improved QInput example... ...to prevent issue duplicating Related: [https://github.com/quasarframework/quasar/issues/11423](https://github.com/quasarframework/quasar/issues/11423), [https://github.com/quasarframework/quasar/issues/10376](https://github.com/quasarframework/quasar/issues/10376), [#10362 [https://github.com/quasarframework/quasar/issues/12431](https://github.com/quasarframework/quasar/issues/12431). * Update input.md Co-authored-by: Razvan Stoenescu <razvan.stoenescu@gmail.com>
This might be fixed in |
Discussed in #10362
Originally posted by zanzara August 12, 2021
IMO it seems to be a bug:
If i use this:
it throws me this error when I click on
clearable
:If I use
v-model
w/o.trim
it works.Can anyone confirm? Or where is my mistake? (it works in Q1)
(Info: » Pkg quasar........ v2.0.3 » Pkg @quasar/app... v3.0.4 )
The text was updated successfully, but these errors were encountered: