Skip to content

Getting old v-model object value after @change event in b-form-select  #1772

Closed
@iruizeguilaz

Description

@iruizeguilaz

I have a problem with the event Change. I launch a code that use the v-model that my b-form-select has binded but the value that is ised in the event is the old. I do not get the new value.

I have come accross this old link of another post that speaks about that same issue but without using vue-boostrap, just an example of a select

https://jsfiddle.net/ak51oxfg/2/

.....
<b-form-select @change="onCompanyChange" class="mb-2 mr-sm-2 mb-sm-0" name="size" v-model="idCompany" >
...

onCompanyChange(){
console.log(this.idCompany);
}

"bootstrap": "^3.3.7"
"bootstrap-vue": "^2.0.0-rc.6"
"vue": "^2.5.13"
"vuex": "^3.0.0"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions