Skip to content

Inconsistent change event behavior on form field components #4432

@rspenc29

Description

@rspenc29

Describe the bug

The change event has inconsistent behavior for different components. As you can see in the fiddle, radios and checkboxes trigger the change event before updating the model while the select component triggers it after updating the model. Pagination also triggers the change event before the model updates. There may be other components as well.

Steps to reproduce the bug

https://jsfiddle.net/gc29qnew/3/

Expected behavior

I expect consistent behavior across components. Bootstrap Vue should update the model before calling the change event since that's consistent with how vue does it.

Versions

Libraries:

  • BootstrapVue: 2.1.0
  • Bootstrap: 4.3.1
  • Vue: 2.6.0

Environment:

firefox developer edition 10.15.1
google chrome 78.0.3904.108

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions