Skip to content
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

input-debounce not working on q-select #16377

Closed
aryan-myrtle opened this issue Sep 21, 2023 · 2 comments
Closed

input-debounce not working on q-select #16377

aryan-myrtle opened this issue Sep 21, 2023 · 2 comments
Labels
area/components bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/vite-plugin Bugs related to Vite usage with Quasar kind/bug 🐞 Qv2 🔝 Quasar v2 issues

Comments

@aryan-myrtle
Copy link

What happened?

input-debounce does not work on q-select when q-select used as input -- combobox.

What did you expect to happen?

input-debounce="1000" should delay the execution of @input-value by 1 second.

Reproduction URL

https://jsfiddle.net/kgbhr7s9/5/

How to reproduce?

  1. open jsfiddle
  2. type in the input
  3. it should debounce the console.log function
  4. but nothing is being debounced

Flavour

Vite Plugin (@quasar/vite-plugin)

Areas

Components (quasar)

Platforms/Browsers

Chrome

Quasar info output

No response

Relevant log output

No response

Additional context

No response

@github-actions github-actions bot added area/components bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/vite-plugin Bugs related to Vite usage with Quasar labels Sep 21, 2023
@HarisSpahija
Copy link

HarisSpahija commented Oct 11, 2023

Hi Aryan,

In your example you made a couple of implementation mistakes.
To use the delay you have to make sure you pass a number.

Also the delay is used for delaying a filter function.

For example using your component

 <q-select
    v-model="departureCity"
    use-input
    :input-debounce="1000"
   @filter="justdoit"
>
</q-select>

Input will always happen. Perhaps the prop name could be a bit better. Something like filter-debounce would make more sense I believe. Hope this helps!

@rstoenescu
Copy link
Member

Improvement/fix (see commit msg above) will be available in Quasar v2.12.8

pdanpdan added a commit to pdanpdan/quasar that referenced this issue Oct 21, 2023
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Oct 21, 2023
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Oct 21, 2023
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/components bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/vite-plugin Bugs related to Vite usage with Quasar kind/bug 🐞 Qv2 🔝 Quasar v2 issues
Projects
None yet
Development

No branches or pull requests

3 participants