question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Enhancement] v-combobox does not update until blur

See original GitHub issue

(Possibly unrelated) v-combobox does not seem to emit “input” events, only “update:searchInput”. I tried to use with v-debounce but it did not work.

I have a v-combobox in a v-form, it is a required field with rules. I want to be able to type in the combobox and see that the validation errors disappear and the submit button is enabled without clicking outside of the combobox

https://codepen.io/nalbion/pen/xJgYjL?editors=1111

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:28
  • Comments:26 (5 by maintainers)

github_iconTop GitHub Comments

37reactions
thexperimentscommented, Mar 3, 2019

Possible workaround https://codepen.io/thexperiments/pen/ywOdwe

@input.native="category=$event.srcElement.value"

where category is the same model attached to the v-model of the combobox. Would still like it more if it was generic and I could just add this to all the comboboxes without modifying to point to the right model.

22reactions
PradeepNooneycommented, Aug 28, 2020

@SameeranB Problem resolved!! , I have assigned the value emitted from @ update event directly , instead of doc.getElementbyId.value, Somehow it is working!! thanks!

<template>
    ...
    <v-combobox id="targetInput"
                @update:search-input="updateTargetInput" 
                :rules="rules" 
                :items="autocompletes"
                ></v-combobox>
    ...
</template>

<script>
    ...
    data() {
        return {
            currentTargetInput : null
        }
    },
    methods: {
        updateTargetInput(currentValue){
            this.currentTargetInput = currentValue
        }
    }
    ...
</script>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Problem with updating model in Vuetify combobox
However, with a combobox, the default behaviour is that the v-model variable is not actually updated until the you lose focus on the...
Read more >
Clear button event - Telerik UI for Blazor - Documentation
There doesn't seem to be any event attached to the clear action, I would like ... is nothing to catch it appear until...
Read more >
Combobox - Lightning Design System
A Base Combobox allows a user to select an option from a pre-defined list of options that that is functionally similar to an...
Read more >
ForeUI V4.6: Dynamically Add/Remove ComboBox Item in Simulation
We also made some enhancements on opacity adjusting in either the tools panel and ... It is not comfortable that they use different...
Read more >
ComboBox's SelectedValue doesn't update the bound ...
I've a ComboBox in one of my Views: <ComboBox Grid.Row="1"; IsSynchronizedWithCurrentItem="True"; ItemsSource="{Binding VacantSpaces}" ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found