quasar
quasar copied to clipboard
q-input does not respect lazy model modifier
What happened?
If a QInput is bound to a model with the .lazy modifier, the model is updated on typing (the input event).
What did you expect to happen?
I expect the model to be updated when the user has finished entry (the change event) and not on every keystroke.
Reproduction URL
https://codepen.io/rotu-the-bold/full/MYwaQyw
How to reproduce?
- Go to the reproduction link
- Edit the native input and observe that the model does not change until you tab out.
- Edit the QInput and observe that the model changes on every keystroke
Flavour
Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)
Areas
Components (quasar)
Platforms/Browsers
No response
Quasar info output
Important local packages
quasar - 2.17.7 -- Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time
@quasar/app-vite - 2.2.0 -- Quasar Framework App CLI with Vite
Relevant log output
Additional context
Reported originally in #882 but not addressed by linked commit 5f9db95cefddcf95dbe259fd7672a4fe0206dc0c
The interaction with rules/lazy-rules is also a little unintuitive. Whether or not validation rules are satisfied, the model still gets updated.