QInput with trim and debounce swallows space while typing #17663
Labels
area/components
bug/1-repro-available
A reproduction is available and needs to be confirmed.
flavour/quasar-cli-vite
kind/bug 🐞
Qv2 🔝
Quasar v2 issues
What happened?
If using
v-model.trim
onQInput
together withdebounce
, trailing spaces get swallowed while typing.The following screencast shows the issue:
Screen.Recording.2024-11-26.at.16.41.08.mov
The exact sequence of keys pressed in the screencast above:
,
, long pause after).
a
,s
,d
,f
,a
,s
,d
,f
. Please note the timing between the keystrokes (short pause before theWhat did you expect to happen?
After entering
,
a
,s
,d
,f
,a
,s
,d
,f
, themodel
of the input should hold the valueasdf asdf
, regardless of the keystroke timing.Reproduction URL
https://jsfiddle.net/12jswtre/29/
How to reproduce?
asdf
(with the trailing space). Ensure you type quickly (< 1s between the keystrokes)asdf
againAfter step 4 you may observe that the cursor jumped back by one character (because the trailing space was removed).
Flavour
Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)
Areas
Components (quasar)
Platforms/Browsers
Firefox, Chrome, Safari
Quasar info output
Relevant log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: