quasar icon indicating copy to clipboard operation
quasar copied to clipboard

q-input does not respect lazy model modifier

Open rotu opened this issue 7 months ago • 1 comments

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?

  1. Go to the reproduction link
  2. Edit the native input and observe that the model does not change until you tab out.
  3. 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

rotu avatar May 29 '25 18:05 rotu

The interaction with rules/lazy-rules is also a little unintuitive. Whether or not validation rules are satisfied, the model still gets updated.

rotu avatar May 29 '25 19:05 rotu